-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaginated.go
55 lines (48 loc) · 1.37 KB
/
paginated.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
package tdproto
// Paginated chats
type PaginatedChats struct {
Contacts []Contact `json:"contacts,omitempty"`
Objects []Chat `json:"objects"`
Count int `json:"count"`
Limit int `json:"limit"`
Offset int `json:"offset"`
}
// Paginated messages
type PaginatedMessages struct {
Objects []Message `json:"objects"`
Count int `json:"count"`
Limit int `json:"limit"`
Offset int `json:"offset"`
}
// Paginated contacts
type PaginatedContacts struct {
Objects []Contact `json:"objects"`
Count int `json:"count"`
Limit int `json:"limit"`
Offset int `json:"offset"`
}
// Chat messages
type ChatMessages struct {
Messages []Message `json:"messages"`
}
// Paginated UploadShortMessage
type PaginatedUploadShortMessages struct {
Objects []UploadShortMessage `json:"objects"`
Count int `json:"count"`
Limit int `json:"limit"`
Offset int `json:"offset"`
}
// Paginated meetings
type PaginatedMeetings struct {
Objects []Meeting `json:"objects"`
Count int `json:"count"`
Limit int `json:"limit"`
Offset int `json:"offset"`
}
// Paginated billing enquirires
type PaginatedBillingEnquiries struct {
Objects []Enquiry `json:"objects"`
Count int `json:"count"`
Limit int `json:"limit"`
Offset int `json:"offset"`
}