public enum PushStatusType extends java.lang.Enum<PushStatusType>
Enum Constant and Description |
---|
NOT_DEFINED |
NOT_SUCCESS_DEVICE_REJECTED |
NOT_SUCCESS_HTTP_ERROR |
NOT_SUCCESS_INTERNAL_ERROR |
NOT_SUCCESS_NOT_VALID_PARAMS |
NOT_SUCCESS_NOT_VALID_TOKEN |
NOT_SUCCESS_TRY_LATER |
SOME_SUCCESS |
SUCCESS |
TYPE_UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static PushStatusType |
getByCode(int code)
Получить значение по коду от сервера
|
int |
getCode() |
static boolean |
statusIsReachable(PushStatusType status) |
java.lang.String |
toString() |
static PushStatusType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PushStatusType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PushStatusType SUCCESS
public static final PushStatusType SOME_SUCCESS
public static final PushStatusType NOT_SUCCESS_TRY_LATER
public static final PushStatusType NOT_SUCCESS_DEVICE_REJECTED
public static final PushStatusType NOT_SUCCESS_INTERNAL_ERROR
public static final PushStatusType NOT_SUCCESS_NOT_VALID_TOKEN
public static final PushStatusType NOT_SUCCESS_NOT_VALID_PARAMS
public static final PushStatusType NOT_DEFINED
public static final PushStatusType NOT_SUCCESS_HTTP_ERROR
public static final PushStatusType TYPE_UNKNOWN
public static PushStatusType[] values()
for (PushStatusType c : PushStatusType.values()) System.out.println(c);
public static PushStatusType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getCode()
public java.lang.String toString()
toString
in class java.lang.Enum<PushStatusType>
public static PushStatusType getByCode(int code)
public static boolean statusIsReachable(PushStatusType status)