Skip to content

Commit 9e90e4f

Browse files
authored
Merge pull request #5 from notificationapi-com/4NhY0NHd/3202-add-base-url-to-the-java-sdk
Chore: add new model classes.
2 parents cdd6d9c + fa6efa7 commit 9e90e4f

18 files changed

+885
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Add the following dependency to your project's `pom.xml`:
1010
<dependency>
1111
<groupId>com.notificationapi</groupId>
1212
<artifactId>notificationapi-java-server-sdk</artifactId>
13-
<version>0.1.0</version>
13+
<version>0.3.0</version>
1414
</dependency>
1515
```
1616

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.notificationapi</groupId>
88
<artifactId>notificationapi-java-server-sdk</artifactId>
9-
<version>0.2.0</version>
9+
<version>0.3.0</version>
1010
<packaging>jar</packaging>
1111

1212
<!-- Project metadata -->
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.notificationapi.model;
2+
3+
import com.fasterxml.jackson.annotation.JsonInclude;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
6+
@JsonInclude(JsonInclude.Include.NON_NULL)
7+
public class CallOptions {
8+
@JsonProperty("message")
9+
private String message;
10+
11+
public String getMessage() { return message; }
12+
public CallOptions setMessage(String message) { this.message = message; return this; }
13+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
package com.notificationapi.model;
2+
3+
import com.fasterxml.jackson.annotation.JsonInclude;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
6+
@JsonInclude(JsonInclude.Include.NON_NULL)
7+
public class Device {
8+
@JsonProperty("app_id")
9+
private String appId;
10+
11+
@JsonProperty("ad_id")
12+
private String adId;
13+
14+
@JsonProperty("device_id")
15+
private String deviceId;
16+
17+
@JsonProperty("platform")
18+
private String platform;
19+
20+
@JsonProperty("manufacturer")
21+
private String manufacturer;
22+
23+
@JsonProperty("model")
24+
private String model;
25+
26+
public String getAppId() { return appId; }
27+
public Device setAppId(String appId) { this.appId = appId; return this; }
28+
29+
public String getAdId() { return adId; }
30+
public Device setAdId(String adId) { this.adId = adId; return this; }
31+
32+
public String getDeviceId() { return deviceId; }
33+
public Device setDeviceId(String deviceId) { this.deviceId = deviceId; return this; }
34+
35+
public String getPlatform() { return platform; }
36+
public Device setPlatform(String platform) { this.platform = platform; return this; }
37+
38+
public String getManufacturer() { return manufacturer; }
39+
public Device setManufacturer(String manufacturer) { this.manufacturer = manufacturer; return this; }
40+
41+
public String getModel() { return model; }
42+
public Device setModel(String model) { this.model = model; return this; }
43+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package com.notificationapi.model;
2+
3+
import com.fasterxml.jackson.annotation.JsonInclude;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
6+
@JsonInclude(JsonInclude.Include.NON_NULL)
7+
public class EmailOptions {
8+
@JsonProperty("subject")
9+
private String subject;
10+
@JsonProperty("html")
11+
private String html;
12+
@JsonProperty("previewText")
13+
private String previewText;
14+
@JsonProperty("senderName")
15+
private String senderName;
16+
@JsonProperty("senderEmail")
17+
private String senderEmail;
18+
19+
public String getSubject() { return subject; }
20+
public EmailOptions setSubject(String subject) { this.subject = subject; return this; }
21+
public String getHtml() { return html; }
22+
public EmailOptions setHtml(String html) { this.html = html; return this; }
23+
public String getPreviewText() { return previewText; }
24+
public EmailOptions setPreviewText(String previewText) { this.previewText = previewText; return this; }
25+
public String getSenderName() { return senderName; }
26+
public EmailOptions setSenderName(String senderName) { this.senderName = senderName; return this; }
27+
public String getSenderEmail() { return senderEmail; }
28+
public EmailOptions setSenderEmail(String senderEmail) { this.senderEmail = senderEmail; return this; }
29+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.notificationapi.model;
2+
3+
import com.fasterxml.jackson.annotation.JsonInclude;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
6+
@JsonInclude(JsonInclude.Include.NON_NULL)
7+
public class InAppOptions {
8+
@JsonProperty("title")
9+
private String title;
10+
@JsonProperty("url")
11+
private String url;
12+
@JsonProperty("image")
13+
private String image;
14+
15+
public String getTitle() { return title; }
16+
public InAppOptions setTitle(String title) { this.title = title; return this; }
17+
public String getUrl() { return url; }
18+
public InAppOptions setUrl(String url) { this.url = url; return this; }
19+
public String getImage() { return image; }
20+
public InAppOptions setImage(String image) { this.image = image; return this; }
21+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.notificationapi.model;
2+
3+
import com.fasterxml.jackson.annotation.JsonInclude;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
6+
@JsonInclude(JsonInclude.Include.NON_NULL)
7+
public class MobilePushOptions {
8+
@JsonProperty("title")
9+
private String title;
10+
@JsonProperty("message")
11+
private String message;
12+
13+
public String getTitle() { return title; }
14+
public MobilePushOptions setTitle(String title) { this.title = title; return this; }
15+
public String getMessage() { return message; }
16+
public MobilePushOptions setMessage(String message) { this.message = message; return this; }
17+
}

0 commit comments

Comments
 (0)