public class Notification
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Notification.Builder
Builds a notification to be sent to APNS.
|
static class |
Notification.Priority |
| Modifier | Constructor and Description |
|---|---|
protected |
Notification(java.lang.String payload,
java.lang.String token,
java.lang.String topic,
java.lang.String collapseId,
long expiration,
Notification.Priority priority,
java.util.UUID uuid,
java.lang.String pushType)
Constructs a new Notification with a payload and token.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCollapseId()
Retrieves the collapseId.
|
long |
getExpiration() |
java.lang.String |
getPayload()
Retrieves the payload.
|
Notification.Priority |
getPriority() |
java.lang.String |
getPushType() |
java.lang.String |
getToken()
Retrieves the token.
|
java.lang.String |
getTopic()
Retrieves the topic.
|
java.util.UUID |
getUuid() |
protected Notification(java.lang.String payload,
java.lang.String token,
java.lang.String topic,
java.lang.String collapseId,
long expiration,
Notification.Priority priority,
java.util.UUID uuid,
java.lang.String pushType)
payload - The JSON body (which is used for the request)token - The device tokentopic - The topic for this notificationcollapseId - The collapse IDexpiration - A UNIX epoch date expressed in seconds (UTC)priority - The priority of the notification (10 or 5)uuid - A canonical UUID that identifies the notificationpushType - Type of push to be sent (background/alert etc)public java.lang.String getTopic()
public java.lang.String getCollapseId()
public java.lang.String getPayload()
public java.lang.String getToken()
public long getExpiration()
public Notification.Priority getPriority()
public java.lang.String getPushType()
public java.util.UUID getUuid()
Copyright © 2020. All Rights Reserved.