-
Notifications
You must be signed in to change notification settings - Fork 13
/
messagecontent.go
61 lines (37 loc) · 1.5 KB
/
messagecontent.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
package platformclientv2
import (
"encoding/json"
"strconv"
"strings"
)
// Messagecontent - Message content element.
type Messagecontent struct {
// ContentType - Type of this content element. If contentType = \"Attachment\" only one item is allowed.
ContentType *string `json:"contentType,omitempty"`
// Location - Location content.
Location *Contentlocation `json:"location,omitempty"`
// Attachment - Attachment content.
Attachment *Contentattachment `json:"attachment,omitempty"`
// QuickReply - Quick reply content.
QuickReply *Contentquickreply `json:"quickReply,omitempty"`
// ButtonResponse - Button response content.
ButtonResponse *Contentbuttonresponse `json:"buttonResponse,omitempty"`
// Generic - Generic content.
Generic *Contentgeneric `json:"generic,omitempty"`
// List - List content.
List *Contentlist `json:"list,omitempty"`
// Template - Template notification content.
Template *Contentnotificationtemplate `json:"template,omitempty"`
// Reactions - A set of reactions to a message.
Reactions *[]Contentreaction `json:"reactions,omitempty"`
// Mention - Mention content.
Mention *Messagingrecipient `json:"mention,omitempty"`
// Postback - Structured message postback (Deprecated).
Postback *Contentpostback `json:"postback,omitempty"`
}
// String returns a JSON representation of the model
func (o *Messagecontent) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}