|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.relayrides.pushy.apns.SendableApnsPushNotification<T>
public class SendableApnsPushNotification<T extends ApnsPushNotification>
Represents a push notification wrapped with transmission-related metadata ready to be sent to an APNs server. Sendable push notifications include a sequence number that can be used to identify notifications rejected by the APNs server.
Constructor Summary | |
---|---|
SendableApnsPushNotification(T pushNotification,
int sequenceNumber)
Constructs a sendable push notification with the given base notification and sequence number. |
Method Summary | |
---|---|
T |
getPushNotification()
Returns the push notification to be sent. |
int |
getSequenceNumber()
Returns the channel-specific sequence number for this push notification. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SendableApnsPushNotification(T pushNotification, int sequenceNumber)
pushNotification
- the underlying push notificationsequenceNumber
- the channel-specific sequence number with which to send this notificationMethod Detail |
---|
public T getPushNotification()
public int getSequenceNumber()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |