// Path: src/main/java/javapns/devices/Device.java
// public interface Device {
//   /**
//    * An id representing a particular device.
//    * <p>
//    * Note that this is a local reference to the device,
//    * which is not related to the actual device UUID or
//    * other device-specific identification. Most of the
//    * time, this deviceId should be the same as the token.
//    *
//    * @return the device id
//    */
//   String getDeviceId();
// 
//   /**
//    * An id representing a particular device.
//    * <p>
//    * Note that this is a local reference to the device,
//    * which is not related to the actual device UUID or
//    * other device-specific identification. Most of the
//    * time, this deviceId should be the same as the token.
//    *
//    * @param id the device id
//    */
//   void setDeviceId(String id);
// 
//   /**
//    * A device token.
//    *
//    * @return the device token
//    */
//   String getToken();
// 
//   /**
//    * Set the device token
//    *
//    * @param token
//    */
//   void setToken(String token);
// 
//   /**
//    * @return the last register
//    */
//   Timestamp getLastRegister();
// 
//   /**
//    * @param lastRegister the last register
//    */
//   void setLastRegister(Timestamp lastRegister);
// }
// 
// Path: src/main/java/javapns/notification/exceptions/ErrorResponsePacketReceivedException.java
// public class ErrorResponsePacketReceivedException extends Exception {
// 
//   private static final long serialVersionUID = 5798868422603574079L;
//   private final ResponsePacket packet;
// 
//   public ErrorResponsePacketReceivedException(final ResponsePacket packet) {
//     super(String.format("An error response packet was received from the APNS server: %s", packet.getMessage()));
//     this.packet = packet;
//   }
// 
//   public ResponsePacket getPacket() {
//     return packet;
//   }
// 
// }


import javapns.devices.Device;
import javapns.notification.exceptions.ErrorResponsePacketReceivedException;
import java.util.ArrayList;
import java.util.List;
package javapns.notification;



/**
 * <p>An object representing the result of a push notification to a specific payload to a single device.</p>
 * <p>
 * <p>If any error occurred while trying to push the notification, an exception is attached.</p>
 * <p>
 * <p>If Apple's Push Notification Service returned an error-response packet, it is linked to the related PushedNotification
 * so you can find out what the actual error was.</p>
 *
 * @author Sylvain Pedneault
 */
public class PushedNotification {

  private Payload payload;
// Path: src/main/java/javapns/devices/Device.java
// public interface Device {
//   /**
//    * An id representing a particular device.
//    * <p>
//    * Note that this is a local reference to the device,
//    * which is not related to the actual device UUID or
//    * other device-specific identification. Most of the
//    * time, this deviceId should be the same as the token.
//    *
//    * @return the device id
//    */
//   String getDeviceId();
// 
//   /**
//    * An id representing a particular device.
//    * <p>
//    * Note that this is a local reference to the device,
//    * which is not related to the actual device UUID or
//    * other device-specific identification. Most of the
//    * time, this deviceId should be the same as the token.
//    *
//    * @param id the device id
//    */
//   void setDeviceId(String id);
// 
//   /**
//    * A device token.
//    *
//    * @return the device token
//    */
//   String getToken();
// 
//   /**
//    * Set the device token
//    *
//    * @param token
//    */
//   void setToken(String token);
// 
//   /**
//    * @return the last register
//    */
//   Timestamp getLastRegister();
// 
//   /**
//    * @param lastRegister the last register
//    */
//   void setLastRegister(Timestamp lastRegister);
// }
// 
// Path: src/main/java/javapns/notification/exceptions/ErrorResponsePacketReceivedException.java
// public class ErrorResponsePacketReceivedException extends Exception {
// 
//   private static final long serialVersionUID = 5798868422603574079L;
//   private final ResponsePacket packet;
// 
//   public ErrorResponsePacketReceivedException(final ResponsePacket packet) {
//     super(String.format("An error response packet was received from the APNS server: %s", packet.getMessage()));
//     this.packet = packet;
//   }
// 
//   public ResponsePacket getPacket() {
//     return packet;
//   }
// 
// }


// Path: src/main/java/javapns/notification/PushedNotification.java
import javapns.devices.Device;
import javapns.notification.exceptions.ErrorResponsePacketReceivedException;
import java.util.ArrayList;
import java.util.List;

package javapns.notification;



/**
 * <p>An object representing the result of a push notification to a specific payload to a single device.</p>
 * <p>
 * <p>If any error occurred while trying to push the notification, an exception is attached.</p>
 * <p>
 * <p>If Apple's Push Notification Service returned an error-response packet, it is linked to the related PushedNotification
 * so you can find out what the actual error was.</p>
 *
 * @author Sylvain Pedneault
 */
public class PushedNotification {

  private Payload payload;
  private Device device;