Skip to content

Commit 82b7f7f

Browse files
author
ericchung
committed
Fixes #11 - add device id in response
1 parent 2393a98 commit 82b7f7f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/java/com/currencyfair/onesignal/model/player/ViewDeviceResponse.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,25 @@
2222
* Response class for {@link com.currencyfair.onesignal.OneSignal#viewDevice(String, String, String)} request.
2323
*/
2424
public class ViewDeviceResponse extends Device {
25+
/**
26+
* The device's OneSignal ID
27+
*/
28+
private String id;
2529

2630
/**
2731
* If {@code true}, this is the equivalent of a user being <i>Unsubscribed</i> (as seen in All Users).
2832
*/
2933
@JsonProperty("invalid_identifier")
3034
private Boolean invalidIdentifier;
3135

36+
public String getId() {
37+
return id;
38+
}
39+
40+
public void setId(String id) {
41+
this.id = id;
42+
}
43+
3244
public Boolean getInvalidIdentifier() {
3345
return invalidIdentifier;
3446
}

0 commit comments

Comments
 (0)