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 @@ -681,6 +681,14 @@ public class Notification {
@JsonProperty("isChrome")
private Boolean chrome;

/**
* Use this if you have client side Android Oreo Channels you have already defined in your app with code.
* <p>
* ANDROID
*/
@JsonProperty("existing_android_channel_id")
private String existingAndroidChannelId;

public String getId() {
return id;
}
Expand Down Expand Up @@ -1169,6 +1177,14 @@ public void setChrome(Boolean chrome) {
this.chrome = chrome;
}

public void setExistingAndroidChannelId(String channelId) {
this.existingAndroidChannelId = channelId;
}

public String getExistingAndroidChannelId() {
return existingAndroidChannelId;
}

@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public final class NotificationRequestBuilder {
private Boolean wpwns;
private Boolean adm;
private Boolean chrome;
private String existingAndroidChannelId;

private NotificationRequestBuilder() {
}
Expand Down Expand Up @@ -505,6 +506,11 @@ public NotificationRequestBuilder withChrome(Boolean chrome) {
return this;
}

public NotificationRequestBuilder withExistingAndroidChannelId(String channelId) {
this.existingAndroidChannelId = channelId;
return this;
}

public NotificationRequest build() {
NotificationRequest notificationRequest = new NotificationRequest();
notificationRequest.setId(id);
Expand Down Expand Up @@ -571,6 +577,7 @@ public NotificationRequest build() {
notificationRequest.setWpwns(wpwns);
notificationRequest.setAdm(adm);
notificationRequest.setChrome(chrome);
notificationRequest.setExistingAndroidChannelId(existingAndroidChannelId);
return notificationRequest;
}
}