forked from jtagcat/whatapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
r_mailbox.go
34 lines (32 loc) · 1.01 KB
/
r_mailbox.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
package whatapi
type Conversation struct {
ConvID int `json:"convId"`
Subject string `json:"subject"`
Sticky bool `json:"sticky"`
Messages []struct {
MessageID int `json:"messageId"`
SenderID int `json:"senderId"`
SenderName string `json:"senderName"`
SentDate string `json:"sentDate"`
BbBody string `json:"bbBody"`
Body string `json:"body"`
} `json:"messages"`
}
type Mailbox struct {
CurrentPage int `json:"currentPage"`
Pages int `json:"pages"`
Messages []struct {
ConvID int `json:"convId"`
Subject string `json:"subject"`
Unread bool `json:"unread"`
Sticky bool `json:"sticky"`
ForwardedID int `json:"forwardedID"`
ForwardedName string `json:"forwardedName"`
SenderID int `json:"senderId"`
Username string `json:"username"`
Donor bool `json:"donor"`
Warned bool `json:"warned"`
Enabled bool `json:"enabled"`
Date string `json:"date"`
} `json:"messages"`
}