Skip to content

Commit

Permalink
feat(app_settings): add offlineonly (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdeme authored Apr 11, 2022
1 parent c302c7a commit d334f6a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/io/getstream/chat/java/models/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ public static class PushNotificationFields {
@JsonProperty("version")
private PushVersion version;

@NotNull
@JsonProperty("offline_only")
private Boolean offlineOnly;

@NotNull
@JsonProperty("apn")
private APNConfig aPNConfig;
Expand Down Expand Up @@ -516,6 +520,10 @@ public static class PushConfigRequestObject {
@JsonProperty("version")
private PushVersion version;

@Nullable
@JsonProperty("offline_only")
private Boolean offlineOnly;

@Nullable
public static PushConfigRequestObject buildFrom(@Nullable PushVersion pushVersion) {
return builder().version(pushVersion).build();
Expand Down

0 comments on commit d334f6a

Please sign in to comment.