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 SummaryEnum ConstantsEnum 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 SummaryModifier and TypeMethodDescription- static PushNotificationStateReturns 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- CREATEDThe push notification has been created but nothing done with it.
- POSTEDThe 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...
- SUCCESSThe push notification has been sent to the push notification end point successfully for distribution.
- UNKNOWN_CLIENTUnknown 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.
- ERRORGeneral error state: depending on where this state is returned, retries may be possible.
- SERVICE_STOPPEDPush service has been stopped. The service is generally only stopped when the server stops.
 
- Method Details- valuesReturns 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
 
- valueOfReturns 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