Package com.iizix.push
Enum Class PushNotificationState
- All Implemented Interfaces:
Serializable
,Comparable<PushNotificationState>
,Constable
The state of a push notification event.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantDescriptionThe push notification has been created but nothing done with it.General error state: depending on where this state is returned, retries may be possible.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...Push service has been stopped.The push notification has been sent to the push notification end point successfully for distribution.Unknown recipient is when the push notification is sent to e.g.Method Summary
Modifier and TypeMethodDescriptionstatic PushNotificationState
Returns the enum constant of this class with the specified name.static PushNotificationState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
CREATED
The push notification has been created but nothing done with it.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
The push notification has been sent to the push notification end point successfully for distribution.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
General error state: depending on where this state is returned, retries may be possible.SERVICE_STOPPED
Push service has been stopped. The service is generally only stopped when the server stops.
Method Details
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
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 nameNullPointerException
- if the argument is null