Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public final class AddEditDeviceRequestBuilder {
private Long lastActive;
private TestType testType;
private Long playtime;
private String externalUserId;

private AddEditDeviceRequestBuilder() {
}
Expand Down Expand Up @@ -162,6 +163,11 @@ public AddEditDeviceRequestBuilder withPlaytime(Long playtime) {
return this;
}

public AddEditDeviceRequestBuilder withExternalUserId(String externalUserId) {
this.externalUserId = externalUserId;
return this;
}

public AddEditDeviceRequest build() {
AddEditDeviceRequest addEditDeviceRequest = new AddEditDeviceRequest();
addEditDeviceRequest.setDeviceType(deviceType);
Expand All @@ -185,6 +191,7 @@ public AddEditDeviceRequest build() {
addEditDeviceRequest.setLastActive(lastActive);
addEditDeviceRequest.setTestType(testType);
addEditDeviceRequest.setPlaytime(playtime);
addEditDeviceRequest.setExternalUserId(externalUserId);
return addEditDeviceRequest;
}
}
11 changes: 11 additions & 0 deletions src/main/java/com/currencyfair/onesignal/model/player/Device.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ public class Device extends Session {
*/
private Long playtime;

@JsonProperty("external_user_id")
private String externalUserId;

public DeviceType getDeviceType() {
return deviceType;
}
Expand Down Expand Up @@ -150,6 +153,14 @@ public void setPlaytime(Long playtime) {
this.playtime = playtime;
}

public String getExternalUserId() {
return externalUserId;
}

public void setExternalUserId(String externalUserId) {
this.externalUserId = externalUserId;
}

@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
Expand Down