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/pages.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/pages.go')
-rw-r--r-- | vendor/github.com/SevereCloud/vksdk/v2/object/pages.go | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/pages.go b/vendor/github.com/SevereCloud/vksdk/v2/object/pages.go new file mode 100644 index 00000000..616830cc --- /dev/null +++ b/vendor/github.com/SevereCloud/vksdk/v2/object/pages.go @@ -0,0 +1,85 @@ +package object // import "github.com/SevereCloud/vksdk/v2/object" + +// Pages privacy settings. +const ( + PagesPrivacyCommunityManagers = iota // community managers only + PagesPrivacyCommunityMembers // community members only + PagesPrivacyEveryone // everyone +) + +// PagesWikipage struct. +type PagesWikipage struct { + CreatorID int `json:"creator_id"` // Page creator ID + CreatorName int `json:"creator_name"` // Page creator name + EditorID int `json:"editor_id"` // Last editor ID + EditorName string `json:"editor_name"` // Last editor name + GroupID int `json:"group_id"` // Community ID + ID int `json:"id"` // Page ID + Title string `json:"title"` // Page title + Views int `json:"views"` // Views number + WhoCanEdit int `json:"who_can_edit"` // Edit settings of the page + WhoCanView int `json:"who_can_view"` // View settings of the page +} + +// PagesWikipageFull struct. +type PagesWikipageFull struct { + // Date when the page has been created in Unixtime. + Created int `json:"created"` + + // Page creator ID. + CreatorID int `json:"creator_id"` + + // Information whether current user can edit the page. + CurrentUserCanEdit BaseBoolInt `json:"current_user_can_edit"` + + // Information whether current user can edit the page access settings. + CurrentUserCanEditAccess BaseBoolInt `json:"current_user_can_edit_access"` + + // Date when the page has been edited in Unixtime. + Edited int `json:"edited"` + + // Last editor ID. + EditorID int `json:"editor_id"` + + // Page ID. + PageID int `json:"page_id"` + + // Community ID. + GroupID int `json:"group_id"` + + // Page content, HTML. + HTML string `json:"html"` + + // Page ID. + ID int `json:"id"` + + // Page content, wiki. + Source string `json:"source"` + + // Page title. + Title string `json:"title"` + + // URL of the page preview. + ViewURL string `json:"view_url"` + + // Views number. + Views int `json:"views"` + + // Edit settings of the page. + WhoCanEdit int `json:"who_can_edit"` + + // View settings of the page. + WhoCanView int `json:"who_can_view"` + VersionCreated int `json:"version_created"` +} + +// PagesWikipageHistory struct. +// +// BUG(VK): https://vk.com/dev/pages.getHistory edited and date. +type PagesWikipageHistory struct { + Date int `json:"date"` // Date when the page has been edited in Unixtime + EditorID int `json:"editor_id"` // Last editor ID + EditorName string `json:"editor_name"` // Last editor name + ID int `json:"id"` // Version ID + Length int `json:"length"` // Page size in bytes +} |