net.robotmedia.billing
Enum ResponseCode
java.lang.Object
java.lang.Enum<ResponseCode>
net.robotmedia.billing.ResponseCode
- All Implemented Interfaces:
- Serializable, Comparable<ResponseCode>
public enum ResponseCode
- extends Enum<ResponseCode>
Possible response codes from billing service
RESULT_OK
public static final ResponseCode RESULT_OK
RESULT_USER_CANCELED
public static final ResponseCode RESULT_USER_CANCELED
RESULT_SERVICE_UNAVAILABLE
public static final ResponseCode RESULT_SERVICE_UNAVAILABLE
RESULT_BILLING_UNAVAILABLE
public static final ResponseCode RESULT_BILLING_UNAVAILABLE
RESULT_ITEM_UNAVAILABLE
public static final ResponseCode RESULT_ITEM_UNAVAILABLE
RESULT_DEVELOPER_ERROR
public static final ResponseCode RESULT_DEVELOPER_ERROR
RESULT_ERROR
public static final ResponseCode RESULT_ERROR
values
public static ResponseCode[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ResponseCode c : ResponseCode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ResponseCode valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant
with the specified name
NullPointerException - if the argument is null
isOk
public static boolean isOk(int response)
valueOf
@Nonnull
public static ResponseCode valueOf(int response)
Copyright © 2013. All Rights Reserved.