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/stats.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/stats.go')
-rw-r--r-- | vendor/github.com/SevereCloud/vksdk/v2/object/stats.go | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/stats.go b/vendor/github.com/SevereCloud/vksdk/v2/object/stats.go new file mode 100644 index 00000000..b8fe5001 --- /dev/null +++ b/vendor/github.com/SevereCloud/vksdk/v2/object/stats.go @@ -0,0 +1,77 @@ +package object // import "github.com/SevereCloud/vksdk/v2/object" + +// StatsActivity struct. +type StatsActivity struct { + Comments int `json:"comments"` // Comments number + Copies int `json:"copies"` // Reposts number + Hidden int `json:"hidden"` // Hidden from news count + Likes int `json:"likes"` // Likes number + Subscribed int `json:"subscribed"` // New subscribers count + Unsubscribed int `json:"unsubscribed"` // Unsubscribed count +} + +// StatsCity struct. +type StatsCity struct { + Count int `json:"count"` // Visitors number + Name string `json:"name"` // City name + Value int `json:"value"` // City ID +} + +// StatsCountry struct. +type StatsCountry struct { + Code string `json:"code"` // Country code + Count int `json:"count"` // Visitors number + Name string `json:"name"` // Country name + Value int `json:"value"` // Country ID +} + +// StatsPeriod struct. +type StatsPeriod struct { + Activity StatsActivity `json:"activity"` + PeriodFrom int `json:"period_from"` // Unix timestamp + PeriodTo int `json:"period_to"` // Unix timestamp + Reach StatsReach `json:"reach"` + Visitors StatsViews `json:"visitors"` +} + +// StatsReach struct. +type StatsReach struct { + Age []StatsSexAge `json:"age"` + Cities []StatsCity `json:"cities"` + Countries []StatsCountry `json:"countries"` + MobileReach int `json:"mobile_reach"` // Reach count from mobile devices + Reach int `json:"reach"` // Reach count + ReachSubscribers int `json:"reach_subscribers"` // Subscribers reach count + Sex []StatsSexAge `json:"sex"` + SexAge []StatsSexAge `json:"sex_age"` +} + +// StatsSexAge struct. +type StatsSexAge struct { + Count int `json:"count"` // Visitors number + Value string `json:"value"` // Sex/age value +} + +// StatsViews struct. +type StatsViews struct { + Age []StatsSexAge `json:"age"` + Cities []StatsCity `json:"cities"` + Countries []StatsCountry `json:"countries"` + MobileViews int `json:"mobile_views"` // Number of views from mobile devices + Sex []StatsSexAge `json:"sex"` + SexAge []StatsSexAge `json:"sex_age"` + Views int `json:"views"` // Views number + Visitors int `json:"visitors"` // Visitors number +} + +// StatsWallpostStat struct. +type StatsWallpostStat struct { + Hide int `json:"hide"` // Hidings number + JoinGroup int `json:"join_group"` // People have joined the group + Links int `json:"links"` // Link click-through + ReachSubscribers int `json:"reach_subscribers"` // Subscribers reach + ReachTotal int `json:"reach_total"` // Total reach + Report int `json:"report"` // Reports number + ToGroup int `json:"to_group"` // Click-through to community + Unsubscribe int `json:"unsubscribe"` // Unsubscribed members +} |