blob: b8fe50011f198e533230fea77e23c2ed507d059f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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
}
|