diff options
author | Ivanik <ivan170102@gmail.com> | 2021-01-29 04:25:14 +0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 00:25:14 +0100 |
commit | 8764be74616bde87bbbf6c32901cd9f43264d1e0 (patch) | |
tree | 88902ba17d6a6d245cadb7e0b277bee7ef424f99 /vendor/github.com/SevereCloud/vksdk/v2/object/widgets.go | |
parent | 5dd15ef8e716c65accb6cd021095c0e19913d55f (diff) | |
download | matterbridge-msglm-8764be74616bde87bbbf6c32901cd9f43264d1e0.tar.gz matterbridge-msglm-8764be74616bde87bbbf6c32901cd9f43264d1e0.tar.bz2 matterbridge-msglm-8764be74616bde87bbbf6c32901cd9f43264d1e0.zip |
Add vk bridge (#1372)
* Add vk bridge
* Vk bridge attachments
* Vk bridge forwarded messages
* Vk bridge sample config and code cleanup
* Vk bridge add vendor
* Vk bridge message edit
* Vk bridge: fix fetching names of other bots
* Vk bridge: code cleanup
* Vk bridge: fix shadows declaration
* Vk bridge: remove UseFileURL
Diffstat (limited to 'vendor/github.com/SevereCloud/vksdk/v2/object/widgets.go')
-rw-r--r-- | vendor/github.com/SevereCloud/vksdk/v2/object/widgets.go | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/widgets.go b/vendor/github.com/SevereCloud/vksdk/v2/object/widgets.go new file mode 100644 index 00000000..80905a3f --- /dev/null +++ b/vendor/github.com/SevereCloud/vksdk/v2/object/widgets.go @@ -0,0 +1,68 @@ +package object // import "github.com/SevereCloud/vksdk/v2/object" + +// WidgetsCommentMedia struct. +type WidgetsCommentMedia struct { + ItemID int `json:"item_id"` // Media item ID + OwnerID int `json:"owner_id"` // Media owner's ID + ThumbSrc string `json:"thumb_src"` // URL of the preview image (type=photo only) + Type string `json:"type"` +} + +// WidgetsCommentReplies struct. +type WidgetsCommentReplies struct { + CanPost BaseBoolInt `json:"can_post"` // Information whether current user can comment the post + GroupsCanPost BaseBoolInt `json:"groups_can_post"` + Count int `json:"count"` // Comments number + Replies []WidgetsCommentRepliesItem `json:"replies"` +} + +// WidgetsCommentRepliesItem struct. +type WidgetsCommentRepliesItem struct { + Cid int `json:"cid"` // Comment ID + Date int `json:"date"` // Date when the comment has been added in Unixtime + Likes WidgetsWidgetLikes `json:"likes"` + Text string `json:"text"` // Comment text + UID int `json:"uid"` // User ID + User UsersUser `json:"user"` +} + +// WidgetsWidgetComment struct. +type WidgetsWidgetComment struct { + Attachments []WallCommentAttachment `json:"attachments"` + CanDelete BaseBoolInt `json:"can_delete"` // Information whether current user can delete the comment + IsFavorite BaseBoolInt `json:"is_favorite"` + Comments WidgetsCommentReplies `json:"comments"` + Date int `json:"date"` // Date when the comment has been added in Unixtime + FromID int `json:"from_id"` // Comment author ID + ID int `json:"id"` // Comment ID + Likes BaseLikesInfo `json:"likes"` + Media WidgetsCommentMedia `json:"media"` + PostType string `json:"post_type"` // Post type + Reposts BaseRepostsInfo `json:"reposts"` + Text string `json:"text"` // Comment text + ToID int `json:"to_id"` // Wall owner + PostSource WallPostSource `json:"post_source"` + Views struct { + Count int `json:"count"` + } `json:"views"` +} + +// WidgetsWidgetLikes struct. +type WidgetsWidgetLikes struct { + Count int `json:"count"` // Likes number +} + +// WidgetsWidgetPage struct. +type WidgetsWidgetPage struct { + Comments WidgetsWidgetLikes `json:"comments,omitempty"` + + // Date when Widgets on the page has been initialized firstly in Unixtime + Date int `json:"date,omitempty"` + Description string `json:"description,omitempty"` // Page description + ID int `json:"id,omitempty"` // Page ID + Likes WidgetsWidgetLikes `json:"likes,omitempty"` + PageID string `json:"page_id,omitempty"` // page_id parameter value + Photo string `json:"photo,omitempty"` // URL of the preview image + Title string `json:"title,omitempty"` // Page title + URL string `json:"url,omitempty"` // Page absolute URL +} |