From 6fe1f344b36e47d741c0e90b7af9620e4ebf1b62 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Tue, 22 Aug 2017 02:02:48 +0300 Subject: [PATCH] WSComment struct added for test implementation of WS client --- ws_comment.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 ws_comment.go diff --git a/ws_comment.go b/ws_comment.go new file mode 100644 index 0000000..90034d2 --- /dev/null +++ b/ws_comment.go @@ -0,0 +1,27 @@ +package point + +// Represents the WebSocket post comment data +type WSComment struct { + /* + { + "a": "comment", + "files": null, + "to_text": "test", + "author": "skobkin-ru", + "text": "test", + "comment_id": 2, + "to_comment_id": "1", + "html": "

test

", + "post_id": "ojpot" + } + */ + + A string `json:"a"` + Files []string `json:"files"` + ToText string `json: "to_text"` + Author string `json:"author"` + Text string `json:"text"` + CommentId int `json:"comment_id"` + ToCommentId string `json:"to_comment_id"` + PostId string `json:"post_id"` +}