5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-27 12:25:40 +00:00
matterbridge/vendor/github.com/SevereCloud/vksdk/v2/object/widgets.go
dependabot[bot] 5a1fd7dadd
Bump github.com/SevereCloud/vksdk/v2 from 2.11.0 to 2.13.0 (#1698)
Bumps [github.com/SevereCloud/vksdk/v2](https://github.com/SevereCloud/vksdk) from 2.11.0 to 2.13.0.
- [Release notes](https://github.com/SevereCloud/vksdk/releases)
- [Commits](https://github.com/SevereCloud/vksdk/compare/v2.11.0...v2.13.0)

---
updated-dependencies:
- dependency-name: github.com/SevereCloud/vksdk/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-28 23:48:40 +01:00

72 lines
3.2 KiB
Go

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"`
Donut WallWallpostDonut `json:"donut"`
ShortTextRate float64 `json:"short_text_rate"`
Header WallWallpostHeader `json:"header"`
}
// 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
}