-
Notifications
You must be signed in to change notification settings - Fork 0
/
callback.go
61 lines (51 loc) · 1.66 KB
/
callback.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 fsmtwilio
type MessageReceivedCallback struct {
ApiVersion string
AccountSid string
NumSegments int
NumMedia string
MessageSid string
MessagingServiceSid string
SmsMessageSid string
SmsSid string
SmsStatus string
ToCountry string
ToState string
ToCity string
ToZip string
FromCountry string
FromState string
FromCity string
FromZip string
To string
From string
Body string
}
type MessageSentCallback struct {
Message Message `xml:"Message"`
}
type Message struct {
Sid string `xml:"Sid"`
DateCreated string `xml:"DateCreated"`
DateUpdated string `xml:"DateUpdated"`
DateSent string `xml:"DateSent"`
AccountSid string `xml:"AccountSid"`
To string `xml:"To"`
From string `xml:"From"`
MessagingServiceSid string `xml:"MessagingServiceSid"`
Body string `xml:"Body"`
Status string `xml:"Status"`
NumSegments string `xml:"NumSegments"`
NumMedia string `xml:"NumMedia"`
Direction string `xml:"Direction"`
APIVersion string `xml:"ApiVersion"`
Price string `xml:"Price"`
PriceUnit string `xml:"PriceUnit"`
ErrorCode string `xml:"ErrorCode"`
ErrorMessage string `xml:"ErrorMessage"`
URI string `xml:"Uri"`
SubresourceUris SubresourceUris `xml:"SubresourceUris"`
}
type SubresourceUris struct {
Media string `xml:"Media"`
}