This repository has been archived by the owner on Aug 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathoptionals.go
143 lines (96 loc) · 2.86 KB
/
optionals.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
package twiliogo
type Optional interface {
GetParam() (string, string)
}
type Callback string
func (callback Callback) GetParam() (string, string) {
return "Url", string(callback)
}
type ApplicationSid string
func (applicationSid ApplicationSid) GetParam() (string, string) {
return "ApplicationSid", string(applicationSid)
}
type Method string
func (method Method) GetParam() (string, string) {
return "Method", string(method)
}
type FallbackUrl string
func (fallbackUrl FallbackUrl) GetParam() (string, string) {
return "FallbackUrl", string(fallbackUrl)
}
type FallbackMethod string
func (fallbackMethod FallbackMethod) GetParam() (string, string) {
return "FallbackMethod", string(fallbackMethod)
}
type StatusCallback string
func (statusCallback StatusCallback) GetParam() (string, string) {
return "StatusCallback", string(statusCallback)
}
type StatusCallbackMethod string
func (statusCallbackMethod StatusCallbackMethod) GetParam() (string, string) {
return "StatusCallbackMethod", string(statusCallbackMethod)
}
type SendDigits string
func (sendDigits SendDigits) GetParam() (string, string) {
return "SendDigits", string(sendDigits)
}
type IfMachine string
func (ifMachine IfMachine) GetParam() (string, string) {
return "IfMachine", string(ifMachine)
}
type Timeout string
func (timeout Timeout) GetParam() (string, string) {
return "Timeout", string(timeout)
}
type Record string
func (record Record) GetParam() (string, string) {
return "Record", string(record)
}
type To string
func (to To) GetParam() (string, string) {
return "To", string(to)
}
type From string
func (from From) GetParam() (string, string) {
return "From", string(from)
}
type Status string
func (status Status) GetParam() (string, string) {
return "Status", string(status)
}
type StartTime string
func (startTime StartTime) GetParam() (string, string) {
return "StartTime", string(startTime)
}
type ParentCallSid string
func (parentCallSid ParentCallSid) GetParam() (string, string) {
return "ParentCallSid", string(parentCallSid)
}
type DateSent string
func (dateSent DateSent) GetParam() (string, string) {
return "DateSent", string(dateSent)
}
type Body string
func (body Body) GetParam() (string, string) {
return "Body", string(body)
}
type MediaUrl string
func (mediaUrl MediaUrl) GetParam() (string, string) {
return "MediaUrl", string(mediaUrl)
}
type FriendlyName string
func (friendlyName FriendlyName) GetParam() (string, string) {
return "FriendlyName", string(friendlyName)
}
type PhoneNumber string
func (phoneNumber PhoneNumber) GetParam() (string, string) {
return "PhoneNumber", string(phoneNumber)
}
type AreaCode string
func (areaCode AreaCode) GetParam() (string, string) {
return "AreaCode", string(areaCode)
}
type MessagingServiceSid string
func (sid MessagingServiceSid) GetParam() (string, string) {
return "MessagingServiceSid", string(sid)
}