-
Notifications
You must be signed in to change notification settings - Fork 6
/
dial_builder.go
83 lines (70 loc) · 2.21 KB
/
dial_builder.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
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
// Autogenerated by buildergenerator
package goexoml
//SetAction sets Action for Dial struct instance
func (__dial__ *Dial) SetAction(action string) *Dial {
__dial__.Action = action
return __dial__
}
//SetMethod sets Method for Dial struct instance
func (__dial__ *Dial) SetMethod(method string) *Dial {
__dial__.Method = method
return __dial__
}
//SetTimeout sets Timeout for Dial struct instance
func (__dial__ *Dial) SetTimeout(timeout int) *Dial {
__dial__.Timeout = timeout
return __dial__
}
//SetHangupOnStar sets HangupOnStar for Dial struct instance
func (__dial__ *Dial) SetHangupOnStar(hanguponstar bool) *Dial {
__dial__.HangupOnStar = hanguponstar
return __dial__
}
//SetTimeLimit sets TimeLimit for Dial struct instance
func (__dial__ *Dial) SetTimeLimit(timelimit int) *Dial {
__dial__.TimeLimit = timelimit
return __dial__
}
//SetCallerID sets CallerID for Dial struct instance
func (__dial__ *Dial) SetCallerID(callerid string) *Dial {
__dial__.CallerID = callerid
return __dial__
}
//SetRecord sets Record for Dial struct instance
func (__dial__ *Dial) SetRecord(record bool) *Dial {
__dial__.Record = record
return __dial__
}
//SetPlainNumber sets PlainNumber for Dial struct instance
func (__dial__ *Dial) SetPlainNumber(plainnumber string) *Dial {
__dial__.PlainNumber = plainnumber
return __dial__
}
//SetNumber sets Number for Dial struct instance
func (__dial__ *Dial) SetNumber(number *Number) *Dial {
__dial__.Number = number
return __dial__
}
//NewDial return a new Dial pointer
func NewDial() *Dial {
return new(Dial)
}
//IDial The interface that satisfies all the methods for this struct
//IDial asserts implementation of setters for all the fields of Dial
type IDial interface {
SetAction(action string) *Dial
SetMethod(method string) *Dial
SetTimeout(timeout int) *Dial
SetHangupOnStar(hanguponstar bool) *Dial
SetTimeLimit(timelimit int) *Dial
SetCallerID(callerid string) *Dial
SetRecord(record bool) *Dial
SetPlainNumber(plainnumber string) *Dial
SetNumber(number *Number) *Dial
}
//AddDial appends the verb to response
func (r *Response) AddDial(dial IDial) *Response {
r.Response = append(r.Response, dial)
return r
}