blob: 8224774529fedc531a94dea643784b142ce859b2 (
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
package object // import "github.com/SevereCloud/vksdk/v2/object"
// AccountNameRequest struct.
type AccountNameRequest struct {
FirstName string `json:"first_name"` // First name in request
ID int `json:"id"` // Request ID needed to cancel the request
LastName string `json:"last_name"` // Last name in request
Status string `json:"status"`
}
// AccountPushConversations struct.
type AccountPushConversations struct {
Count int `json:"count"` // Items count
Items []*AccountPushConversationsItem `json:"items"`
}
// AccountPushConversationsItem struct.
type AccountPushConversationsItem struct {
DisabledUntil int `json:"disabled_until"` // Time until that notifications are disabled in seconds
PeerID int `json:"peer_id"` // Peer ID
Sound int `json:"sound"` // Information whether the sound are enabled
DisabledMentions BaseBoolInt `json:"disabled_mentions"`
DisabledMassMentions BaseBoolInt `json:"disabled_mass_mentions"`
}
// AccountPushParams struct.
type AccountPushParams struct {
AppRequest []string `json:"app_request"`
Birthday []string `json:"birthday"`
Chat []string `json:"chat"`
Comment []string `json:"comment"`
EventSoon []string `json:"event_soon"`
Friend []string `json:"friend"`
FriendAccepted []string `json:"friend_accepted"`
FriendFound []string `json:"friend_found"`
GroupAccepted []string `json:"group_accepted"`
GroupInvite []string `json:"group_invite"`
Like []string `json:"like"`
Mention []string `json:"mention"`
Msg []string `json:"msg"`
NewPost []string `json:"new_post"`
PhotosTag []string `json:"photos_tag"`
Reply []string `json:"reply"`
Repost []string `json:"repost"`
SdkOpen []string `json:"sdk_open"`
WallPost []string `json:"wall_post"`
WallPublish []string `json:"wall_publish"`
}
// AccountOffer struct.
type AccountOffer struct {
Description string `json:"description"` // Offer description
ID int `json:"id"` // Offer ID
Img string `json:"img"` // URL of the preview image
Instruction string `json:"instruction"` // Instruction how to process the offer
InstructionHTML string `json:"instruction_html"` // Instruction how to process the offer (HTML format)
Price int `json:"price"` // Offer price
ShortDescription string `json:"short_description"` // Offer short description
Tag string `json:"tag"` // Offer tag
Title string `json:"title"` // Offer title
}
// AccountAccountCounters struct.
type AccountAccountCounters struct {
AppRequests int `json:"app_requests"` // New app requests number
Events int `json:"events"` // New events number
Friends int `json:"friends"` // New friends requests number
FriendsRecommendations int `json:"friends_recommendations"` // New friends recommendations number
FriendsSuggestions int `json:"friends_suggestions"` // New friends suggestions number
Gifts int `json:"gifts"` // New gifts number
Groups int `json:"groups"` // New groups number
Messages int `json:"messages"` // New messages number
Notifications int `json:"notifications"` // New notifications number
Photos int `json:"photos"` // New photo tags number
SDK int `json:"sdk"` // New SDK number
MenuDiscoverBadge int `json:"menu_discover_badge"` // New menu discover badge number
MenuClipsBadge int `json:"menu_clips_badge"` // New menu clips badge number
Videos int `json:"videos"` // New video tags number
Faves int `json:"faves"` // New faves number
}
// AccountInfo struct.
type AccountInfo struct {
// Country code.
Country string `json:"country"`
// Language ID.
Lang int `json:"lang"`
// Information whether HTTPS-only is enabled.
HTTPSRequired BaseBoolInt `json:"https_required"`
// Information whether user has been processed intro.
Intro BaseBoolInt `json:"intro"`
// Information whether wall comments should be hidden.
NoWallReplies BaseBoolInt `json:"no_wall_replies"`
// Information whether only owners posts should be shown.
OwnPostsDefault BaseBoolInt `json:"own_posts_default"`
// Two factor authentication is enabled.
TwoFactorRequired BaseBoolInt `json:"2fa_required"`
EuUser BaseBoolInt `json:"eu_user"`
CommunityComments BaseBoolInt `json:"community_comments"`
IsLiveStreamingEnabled BaseBoolInt `json:"is_live_streaming_enabled"`
IsNewLiveStreamingEnabled BaseBoolInt `json:"is_new_live_streaming_enabled"`
LinkRedirects map[string]string `json:"link_redirects"`
}
// AccountPushSettings struct.
type AccountPushSettings struct {
Conversations AccountPushConversations `json:"conversations"`
// Information whether notifications are disabled.
Disabled BaseBoolInt `json:"disabled"`
// Time until that notifications are disabled in Unixtime.
DisabledUntil int `json:"disabled_until"`
Settings AccountPushParams `json:"settings"`
}
// AccountUserSettings struct.
type AccountUserSettings struct {
Bdate string `json:"bdate"` // User's date of birth
BdateVisibility int `json:"bdate_visibility"` // Information whether user's birthdate are hidden
City BaseObject `json:"city"`
Country BaseCountry `json:"country"`
FirstName string `json:"first_name"` // User first name
HomeTown string `json:"home_town"` // User's hometown
LastName string `json:"last_name"` // User last name
MaidenName string `json:"maiden_name"` // User maiden name
NameRequest AccountNameRequest `json:"name_request"`
Phone string `json:"phone"` // User phone number with some hidden digits
Relation int `json:"relation"` // User relationship status
RelationPartner UsersUserMin `json:"relation_partner"`
RelationPending BaseBoolInt `json:"relation_pending"` // Information whether relation status is pending
RelationRequests []UsersUserMin `json:"relation_requests"`
ScreenName string `json:"screen_name"` // Domain name of the user's page
Sex int `json:"sex"` // User sex
Status string `json:"status"` // User status
ID int `json:"id"` // TODO: Check it https://vk.com/bug230405 (always return 0)
}
|