Enum Class PushNotificationState

java.lang.Object
java.lang.Enum<PushNotificationState>
com.iizix.push.PushNotificationState
All Implemented Interfaces:
Serializable, Comparable<PushNotificationState>, Constable

public enum PushNotificationState extends Enum<PushNotificationState>
The state of a push notification event.
Author:
Christopher Mindus
  • Enum Constant Details

    • CREATED

      public static final PushNotificationState CREATED
      The push notification has been created but nothing done with it.
    • POSTED

      public static final PushNotificationState POSTED
      The push notification event has been posted to be sent, but yet nothing else (as errors or such) to report: the notification is on the way...
    • SUCCESS

      public static final PushNotificationState SUCCESS
      The push notification has been sent to the push notification end point successfully for distribution.
    • UNKNOWN_CLIENT

      public static final PushNotificationState UNKNOWN_CLIENT
      Unknown recipient is when the push notification is sent to e.g. to a client that is not aware that it should receive push notifications, e.g. the user has set receive push notifications to "false" or e.g. that the application has been deleted from the device. In all cases, further push notifications should NOT be sent to the client in question.
    • ERROR

      public static final PushNotificationState ERROR
      General error state: depending on where this state is returned, retries may be possible.
    • SERVICE_STOPPED

      public static final PushNotificationState SERVICE_STOPPED
      Push service has been stopped. The service is generally only stopped when the server stops.
  • Method Details

    • values

      public static PushNotificationState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PushNotificationState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null