-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSmsModel.java
More file actions
126 lines (93 loc) · 2.24 KB
/
SmsModel.java
File metadata and controls
126 lines (93 loc) · 2.24 KB
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
package integration.sms;
public class SmsModel {
public SmsModel() {
}
public SmsModel(SmsAuthenticationToken token, String title, String[] numbers, SmsActionEnum actionEnum,String body,String refNo) {
this.token = token;
this.title = title;
this.numbers = numbers;
this.actionEnum = actionEnum;
this.body = body;
this.refNo = refNo;
}
private SmsAuthenticationToken token;
private String message;
private String[] numbers;
private String title;
private String body;
private SmsActionEnum actionEnum;
private String refNo;
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String[] getNumbers() {
return numbers;
}
public void setNumbers(String[] numbers) {
this.numbers = numbers;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public SmsAuthenticationToken getToken() {
return token;
}
public void setToken(SmsAuthenticationToken token) {
this.token = token;
}
public SmsActionEnum getActionEnum() {
return actionEnum;
}
public void setActionEnum(SmsActionEnum actionEnum) {
this.actionEnum = actionEnum;
}
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
public String getRefNo() {
return refNo;
}
public void setRefNo(String refNo) {
this.refNo = refNo;
}
public static class SmsModelBuilder {
SmsAuthenticationToken smsAuthenticationToken;
String title;
String body;
String[] numbers;
SmsActionEnum actionEnum;
String refNo;
public SmsModelBuilder addToken(SmsAuthenticationToken token) {
this.smsAuthenticationToken = token;
return this;
}
public SmsModelBuilder addBody(String body) {
this.body =body;
return this;
}
public SmsModelBuilder addNumbers(String[] numbers) {
this.numbers =numbers;
return this;
}
public SmsModelBuilder addActionType(SmsActionEnum actionEnum) {
this.actionEnum =actionEnum;
return this;
}
public SmsModelBuilder addRefNo(String refNo) {
this.refNo =refNo;
return this;
}
public SmsModel build() {
return new SmsModel(smsAuthenticationToken, title, numbers, actionEnum,body,refNo);
}
}
}