Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Add the following dependency to your project's `pom.xml`:
<dependency>
<groupId>com.notificationapi</groupId>
<artifactId>notificationapi-java-server-sdk</artifactId>
<version>0.1.0</version>
<version>0.3.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.notificationapi</groupId>
<artifactId>notificationapi-java-server-sdk</artifactId>
<version>0.2.0</version>
<version>0.3.0</version>
<packaging>jar</packaging>

<!-- Project metadata -->
Expand Down
13 changes: 13 additions & 0 deletions src/main/java/com/notificationapi/model/CallOptions.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.notificationapi.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class CallOptions {
@JsonProperty("message")
private String message;

public String getMessage() { return message; }
public CallOptions setMessage(String message) { this.message = message; return this; }
}
43 changes: 43 additions & 0 deletions src/main/java/com/notificationapi/model/Device.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package com.notificationapi.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class Device {
@JsonProperty("app_id")
private String appId;

@JsonProperty("ad_id")
private String adId;

@JsonProperty("device_id")
private String deviceId;

@JsonProperty("platform")
private String platform;

@JsonProperty("manufacturer")
private String manufacturer;

@JsonProperty("model")
private String model;

public String getAppId() { return appId; }
public Device setAppId(String appId) { this.appId = appId; return this; }

public String getAdId() { return adId; }
public Device setAdId(String adId) { this.adId = adId; return this; }

public String getDeviceId() { return deviceId; }
public Device setDeviceId(String deviceId) { this.deviceId = deviceId; return this; }

public String getPlatform() { return platform; }
public Device setPlatform(String platform) { this.platform = platform; return this; }

public String getManufacturer() { return manufacturer; }
public Device setManufacturer(String manufacturer) { this.manufacturer = manufacturer; return this; }

public String getModel() { return model; }
public Device setModel(String model) { this.model = model; return this; }
}
29 changes: 29 additions & 0 deletions src/main/java/com/notificationapi/model/EmailOptions.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package com.notificationapi.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class EmailOptions {
@JsonProperty("subject")
private String subject;
@JsonProperty("html")
private String html;
@JsonProperty("previewText")
private String previewText;
@JsonProperty("senderName")
private String senderName;
@JsonProperty("senderEmail")
private String senderEmail;

public String getSubject() { return subject; }
public EmailOptions setSubject(String subject) { this.subject = subject; return this; }
public String getHtml() { return html; }
public EmailOptions setHtml(String html) { this.html = html; return this; }
public String getPreviewText() { return previewText; }
public EmailOptions setPreviewText(String previewText) { this.previewText = previewText; return this; }
public String getSenderName() { return senderName; }
public EmailOptions setSenderName(String senderName) { this.senderName = senderName; return this; }
public String getSenderEmail() { return senderEmail; }
public EmailOptions setSenderEmail(String senderEmail) { this.senderEmail = senderEmail; return this; }
}
21 changes: 21 additions & 0 deletions src/main/java/com/notificationapi/model/InAppOptions.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.notificationapi.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class InAppOptions {
@JsonProperty("title")
private String title;
@JsonProperty("url")
private String url;
@JsonProperty("image")
private String image;

public String getTitle() { return title; }
public InAppOptions setTitle(String title) { this.title = title; return this; }
public String getUrl() { return url; }
public InAppOptions setUrl(String url) { this.url = url; return this; }
public String getImage() { return image; }
public InAppOptions setImage(String image) { this.image = image; return this; }
}
17 changes: 17 additions & 0 deletions src/main/java/com/notificationapi/model/MobilePushOptions.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.notificationapi.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class MobilePushOptions {
@JsonProperty("title")
private String title;
@JsonProperty("message")
private String message;

public String getTitle() { return title; }
public MobilePushOptions setTitle(String title) { this.title = title; return this; }
public String getMessage() { return message; }
public MobilePushOptions setMessage(String message) { this.message = message; return this; }
}
Loading