@Deprecated public class SimpleApnsNotification extends Object implements ApnsNotification
Constructor and Description |
---|
SimpleApnsNotification(byte[] dtoken,
byte[] payload)
Deprecated.
Constructs an instance of
ApnsNotification . |
SimpleApnsNotification(String dtoken,
String payload)
Deprecated.
Constructs an instance of
ApnsNotification . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Deprecated.
|
byte[] |
getDeviceToken()
Deprecated.
Returns the binary representation of the device token.
|
int |
getExpiry()
Deprecated.
Returns the expiry date of the notification, a fixed UNIX
epoch date expressed in seconds
|
int |
getIdentifier()
Deprecated.
Returns the identifier of the current message.
|
byte[] |
getPayload()
Deprecated.
Returns the binary representation of the payload.
|
int |
hashCode()
Deprecated.
|
int |
length()
Deprecated.
Returns the length of the message in bytes as it is encoded on the wire.
|
byte[] |
marshall()
Deprecated.
Returns the binary representation of the message as expected by the
APNS server.
|
String |
toString()
Deprecated.
|
public SimpleApnsNotification(String dtoken, String payload)
ApnsNotification
.
The message encodes the payload with a UTF-8
encoding.dtoken
- The Hex of the device token of the destination phonepayload
- The payload message to be sentpublic SimpleApnsNotification(byte[] dtoken, byte[] payload)
ApnsNotification
.dtoken
- The binary representation of the destination device tokenpayload
- The binary representation of the payload to be sentpublic byte[] getDeviceToken()
getDeviceToken
in interface ApnsNotification
public byte[] getPayload()
getPayload
in interface ApnsNotification
public byte[] marshall()
marshall
in interface ApnsNotification
public int length()
public int getIdentifier()
ApnsNotification
getIdentifier
in interface ApnsNotification
public int getExpiry()
ApnsNotification
getExpiry
in interface ApnsNotification
Copyright © 2015. All rights reserved.