Skip to content

Commit d3f1477

Browse files
author
elbuo8
committed
Change naming conventions
1 parent 1b56c05 commit d3f1477

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/main/java/com/sendgrid/SendGrid.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,19 @@ public Email addTo(String to) {
9494
return this;
9595
}
9696

97-
public Email addTos(String[] tos) {
97+
public Email addTo(String[] tos) {
9898
this.smtpapi.addTos(tos);
9999
this.to.addAll(Arrays.asList(tos));
100100
return this;
101101
}
102102

103-
public Email setTos(String[] tos) {
103+
public Email setTo(String[] tos) {
104104
this.smtpapi.setTos(tos);
105105
this.to = new ArrayList(Arrays.asList(tos));
106106
return this;
107107
}
108108

109-
public String[] getTos() {
109+
public String[] getTo() {
110110
return this.to.toArray(new String[this.to.size()]);
111111
}
112112

@@ -115,17 +115,17 @@ public Email addToName(String toname) {
115115
return this;
116116
}
117117

118-
public Email addToNames(String[] tonames) {
118+
public Email addToName(String[] tonames) {
119119
this.toname.addAll(Arrays.asList(tonames));
120120
return this;
121121
}
122122

123-
public Email setToNames(String[] tonames) {
123+
public Email setToName(String[] tonames) {
124124
this.toname = new ArrayList(Arrays.asList(tonames));
125125
return this;
126126
}
127127

128-
public String[] getToNames() {
128+
public String[] getToName() {
129129
return this.toname.toArray(new String[this.toname.size()]);
130130
}
131131

@@ -161,17 +161,17 @@ public Email addBcc(String bcc) {
161161
return this;
162162
}
163163

164-
public Email addBccs(String[] bccs) {
164+
public Email addBcc(String[] bccs) {
165165
this.bcc.addAll(Arrays.asList(bccs));
166166
return this;
167167
}
168168

169-
public Email setBccs(String[] bccs) {
169+
public Email setBcc(String[] bccs) {
170170
this.bcc = new ArrayList(Arrays.asList(bccs));
171171
return this;
172172
}
173173

174-
public String[] getBccs() {
174+
public String[] getBcc() {
175175
return this.bcc.toArray(new String[this.bcc.size()]);
176176
}
177177

@@ -202,7 +202,7 @@ public String getHtml() {
202202
return this.html;
203203
}
204204

205-
public Email dropSMTPITos() {
205+
public Email dropSMTPAPITos() {
206206
JSONObject oldHeader = new JSONObject(this.smtpapi.jsonString());
207207
oldHeader.remove("to");
208208
this.smtpapi = new SMTPAPI(oldHeader);

0 commit comments

Comments
 (0)