|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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 notificationpublic 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 madeMethod Detail |
---|
public byte[] getToken()
getToken
in interface ApnsPushNotification
public String getPayload()
getPayload
in interface ApnsPushNotification
public Date getDeliveryInvalidationTime()
getDeliveryInvalidationTime
in interface ApnsPushNotification
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |