WSComment struct added for test implementation of WS client

This commit is contained in:
Alexey Skobkin 2017-08-22 02:02:48 +03:00
parent 16787d3a9a
commit 6fe1f344b3
1 changed files with 27 additions and 0 deletions

27
ws_comment.go Normal file
View File

@ -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": "<p>test</p>",
"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"`
}