Skip to content

Commit 7d9721e

Browse files
author
elbuo8
committed
Added new smtpapi methods and version bump
1 parent 9b90ce1 commit 7d9721e

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ apply plugin: 'maven'
1717
apply plugin: 'signing'
1818

1919
group = 'com.sendgrid'
20-
version = "2.0.0"
20+
version = '2.1.0'
2121
ext.packaging = 'jar'
2222

2323
allprojects {
@@ -45,7 +45,7 @@ buildscript {
4545
}
4646

4747
dependencies {
48-
compile 'com.sendgrid:smtpapi-java:1.0.0'
48+
compile 'com.sendgrid:smtpapi-java:1.1.0'
4949
compile 'org.apache.httpcomponents:httpcore:4.3.2'
5050
compile 'org.apache.httpcomponents:httpclient:4.3.4'
5151
compile 'org.apache.httpcomponents:httpmime:4.3.4'

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,24 @@ public JSONObject getFilters() {
374374
return this.smtpapi.getFilters();
375375
}
376376

377+
public Email setASMGroupId(int val) {
378+
this.smtpapi.setASMGroupId(val);
379+
return this;
380+
}
381+
382+
public Integer getASMGroupId() {
383+
return this.smtpapi.getASMGroupId();
384+
}
385+
386+
public Email setSendAt(int sendAt) {
387+
this.smtpapi.setSendAt(sendAt);
388+
return this;
389+
}
390+
391+
public int getSendAt() {
392+
return this.smtpapi.getSendAt();
393+
}
394+
377395
public Email addAttachment(String name, File file) throws IOException, FileNotFoundException {
378396
return this.addAttachment(name, new FileInputStream(file));
379397
}

0 commit comments

Comments
 (0)