-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmessage.go
28 lines (24 loc) · 855 Bytes
/
message.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
package gcloudcx
import "time"
// MessageDetails describes details of a Message in a Message Conversation
type MessageDetails struct {
ID string `json:"messageId"`
Status string `json:"messageStatus"`
SegmentCount int `json:"messageSegmentCount"`
Time time.Time `json:"messageTime"`
Media []MessageMedia `json:"media"`
Stickers []MessageSticker `json:"stickers"`
}
// MessageMedia describes the Media of a Message
type MessageMedia struct {
ID string `json:"id"`
Name string `json:"name"`
URL string `json:"url"`
MediaType string `json:"mediaType"`
ContentLength int64 `json:"contentLengthBytes"`
}
// MessageSticker describes a Message Sticker
type MessageSticker struct {
ID string `json:"id"`
URL string `json:"url"`
}