Skip to content

Commit 9bd207b

Browse files
committed
Adds external_id to the Notification class to be used for idempotency
1 parent 86dd586 commit 9bd207b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/com/currencyfair/onesignal/model/notification/Notification.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,9 @@ public class Notification {
724724
@JsonProperty("isChrome")
725725
private Boolean chrome;
726726

727+
@JsonProperty("external_id")
728+
private String externalId;
729+
727730
public String getId() {
728731
return id;
729732
}
@@ -1216,6 +1219,12 @@ public Boolean getChrome() {
12161219
return chrome;
12171220
}
12181221

1222+
public void setExternalId(String string) {
1223+
this.externalId = string;
1224+
}
1225+
1226+
public String getExternalId() { return this.externalId; }
1227+
12191228
public void setChrome(Boolean chrome) {
12201229
this.chrome = chrome;
12211230
}

0 commit comments

Comments
 (0)