mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-30 00:21:36 +00:00
8764be7461
* 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
86 lines
2.5 KiB
Go
86 lines
2.5 KiB
Go
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
|
|
}
|