|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.relayrides.pushy.apns.util.SimpleApnsPushNotification
public class SimpleApnsPushNotification
A simple and immutable implementation of the ApnsPushNotification interface.
ApnsPayloadBuilder,
TokenUtil| Constructor Summary | |
|---|---|
SimpleApnsPushNotification(byte[] token,
String payload)
Constructs a new push notification with the given token and payload. |
|
SimpleApnsPushNotification(byte[] token,
String payload,
Date invalidationTime)
Constructs a new push notification with the given token, payload, and delivery expiration time. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Date |
getDeliveryInvalidationTime()
Returns the time at which this push notification is no longer valid and should no longer be delivered. |
String |
getPayload()
Returns the payload to include in this push notification. |
byte[] |
getToken()
Returns the token of the device to which this push notification should be delivered. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleApnsPushNotification(byte[] token,
String payload)
token - the device token to which this push notification should be deliveredpayload - the payload to include in this push notification
public SimpleApnsPushNotification(byte[] token,
String payload,
Date invalidationTime)
token - the device token to which this push notification should be deliveredpayload - the payload to include in this push notificationinvalidationTime - the time at which Apple's servers should stop trying to deliver this message; if
null, no delivery attempts beyond the first will be made| Method Detail |
|---|
public byte[] getToken()
getToken in interface ApnsPushNotificationpublic String getPayload()
getPayload in interface ApnsPushNotificationpublic Date getDeliveryInvalidationTime()
getDeliveryInvalidationTime in interface ApnsPushNotificationpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||