javapns.notification.PayloadPerDevice Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javapns-jdk16 Show documentation
Show all versions of javapns-jdk16 Show documentation
Library to send notifications using APNS
package javapns.notification;
import javapns.devices.*;
import javapns.devices.exceptions.*;
import javapns.devices.implementations.basic.*;
/**
* A one-to-one link between a payload and device.
* Provides support for a typical payload-per-device scenario.
*
* @author Sylvain Pedneault
*/
public class PayloadPerDevice {
private Payload payload;
private Device device;
public PayloadPerDevice(Payload payload, String token) throws InvalidDeviceTokenFormatException {
super();
this.payload = payload;
this.device = new BasicDevice(token);
}
public PayloadPerDevice(Payload payload, Device device) {
super();
this.payload = payload;
this.device = device;
}
public Payload getPayload() {
return payload;
}
public Device getDevice() {
return device;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy