javapns.notification
Class PayloadPerDevice

java.lang.Object
  extended by javapns.notification.PayloadPerDevice

public class PayloadPerDevice
extends Object

A one-to-one link between a payload and device. Provides support for a typical payload-per-device scenario.

Author:
Sylvain Pedneault

Constructor Summary
PayloadPerDevice(Payload payload, Device device)
           
PayloadPerDevice(Payload payload, String token)
           
 
Method Summary
 Device getDevice()
           
 Payload getPayload()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PayloadPerDevice

public PayloadPerDevice(Payload payload,
                        String token)
                 throws InvalidDeviceTokenFormatException
Throws:
InvalidDeviceTokenFormatException

PayloadPerDevice

public PayloadPerDevice(Payload payload,
                        Device device)
Method Detail

getPayload

public Payload getPayload()

getDevice

public Device getDevice()