com.relayrides.pushy.apns
Class SendableApnsPushNotification<T extends ApnsPushNotification>

java.lang.Object
  extended by com.relayrides.pushy.apns.SendableApnsPushNotification<T>

public class SendableApnsPushNotification<T extends ApnsPushNotification>
extends Object

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.

Author:
Jon Chambers

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

SendableApnsPushNotification

public SendableApnsPushNotification(T pushNotification,
                                    int sequenceNumber)
Constructs a sendable push notification with the given base notification and sequence number.

Parameters:
pushNotification - the underlying push notification
sequenceNumber - the channel-specific sequence number with which to send this notification
Method Detail

getPushNotification

public T getPushNotification()
Returns the push notification to be sent.

Returns:
the push notification to be sent

getSequenceNumber

public int getSequenceNumber()
Returns the channel-specific sequence number for this push notification.

Returns:
the channel-specific sequence number for this push notification


Copyright © 2013 RelayRides. All rights reserved.