com.notnoop.apns
Interface ApnsNotification

All Known Implementing Classes:
EnhancedApnsNotification, SimpleApnsNotification

public interface ApnsNotification

Represents an APNS notification to be sent to Apple service.


Method Summary
 byte[] getDeviceToken()
          Returns the binary representation of the device token.
 int getExpiry()
          Returns the expiry date of the notification, a fixed UNIX epoch date expressed in seconds
 int getIdentifier()
          Returns the identifier of the current message.
 byte[] getPayload()
          Returns the binary representation of the payload.
 byte[] marshall()
          Returns the binary representation of the message as expected by the APNS server.
 

Method Detail

getDeviceToken

byte[] getDeviceToken()
Returns the binary representation of the device token.


getPayload

byte[] getPayload()
Returns the binary representation of the payload.


getIdentifier

int getIdentifier()
Returns the identifier of the current message. The identifier is an application generated identifier.

Returns:
the notification identifier

getExpiry

int getExpiry()
Returns the expiry date of the notification, a fixed UNIX epoch date expressed in seconds

Returns:
the expiry date of the notification

marshall

byte[] marshall()
Returns the binary representation of the message as expected by the APNS server. The returned array can be used to sent directly to the APNS server (on the wire/socket) without any modification.



Copyright © 2013. All Rights Reserved.