-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.go
69 lines (48 loc) · 1.55 KB
/
user.go
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
package tdproto
// Account data
type User struct {
// Phone for login
Phone string `json:"phone,omitempty"`
// Email for login
Email string `json:"email,omitempty"`
// Family name
FamilyName string `json:"family_name,omitempty"`
// Given name
GivenName string `json:"given_name,omitempty"`
// Patronymic, if any
Patronymic string `json:"patronymic,omitempty"`
// Default language code
DefaultLang string `json:"default_lang,omitempty"`
// Use Ctrl/Cmd + Enter instead Enter
AltSend bool `json:"alt_send"`
// Use * as @ for mentions
AsteriskMention bool `json:"asterisk_mention"`
// Send pushes even user is online
AlwaysSendPushes bool `json:"always_send_pushes"`
// Hide pushes body
HidePushesContent bool `json:"hide_pushes_content"`
// Show unread chats in chat list first
UnreadFirst bool `json:"unread_first"`
// Show unread chats in chat list first on mobiles
MUnreadFirst bool `json:"munread_first"`
// Timezone
Timezone string `json:"timezone"`
// Start silently time (no pushes, no sounds)
QuietTimeStart *string `json:"quiet_time_start"`
// Finish silently time (no pushes, no sounds)
QuietTimeFinish *string `json:"quiet_time_finish"`
// Icon data
Icons IconData `json:"icons"`
}
// Account data with extra information
type UserWithMe struct {
User
// Inviter id, if any
Inviter JID `json:"inviter,omitempty"`
// Available teams
Teams []Team `json:"teams"`
// Registered push devices
Devices []PushDevice `json:"devices"`
// Personal account from billing
Account *PersonalAccountBilling `json:"account,omitempty"`
}