public static class OpenPayload.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
OpenPayload |
build() |
OpenPayload.Builder |
setAlert(java.lang.String alert)
Optional, override the alert value provided at the top level, if any.
|
OpenPayload.Builder |
setDeviceType(DeviceType deviceType)
Set the device type for the open channel payload.
|
OpenPayload.Builder |
setExtras(java.util.Map<java.lang.String,java.lang.String> entries)
A string to string map of additional values to deliver to the target.
|
OpenPayload.Builder |
setInteractive(Interactive interactive)
Optional.
|
OpenPayload.Builder |
setMediaAttachment(java.lang.String mediaAttachment)
Optional, a String representation of a URI for an image or video somewhere on the internet.
|
OpenPayload.Builder |
setSummary(java.lang.String summary)
Optional, a string value for providing a content summary.
|
OpenPayload.Builder |
setTitle(java.lang.String title)
Optional, a string representing the title of the notification.
|
public OpenPayload.Builder setAlert(java.lang.String alert)
alert
- String.public OpenPayload.Builder setTitle(java.lang.String title)
title
- Optional Stringpublic OpenPayload.Builder setExtras(java.util.Map<java.lang.String,java.lang.String> entries)
entries
- Optional Map of Strings.public OpenPayload.Builder setSummary(java.lang.String summary)
summary
- Optional Stringpublic OpenPayload.Builder setMediaAttachment(java.lang.String mediaAttachment)
mediaAttachment
- Stringpublic OpenPayload.Builder setDeviceType(DeviceType deviceType)
deviceType
- DeviceTypepublic OpenPayload.Builder setInteractive(Interactive interactive)
interactive
- Interactivepublic OpenPayload build()