public enum PurchaseResult extends Enum<PurchaseResult>
Enum Constant and Description |
---|
ACCEPTED |
ALREADY_PURCHASED |
DECLINED |
ERROR |
NOT_ENTITLED |
UNKNOWN_TO_SDK_VERSION |
Modifier and Type | Method and Description |
---|---|
static PurchaseResult |
fromValue(String text) |
String |
getValue() |
String |
toString() |
static PurchaseResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PurchaseResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PurchaseResult ACCEPTED
public static final PurchaseResult DECLINED
public static final PurchaseResult NOT_ENTITLED
public static final PurchaseResult ERROR
public static final PurchaseResult ALREADY_PURCHASED
public static final PurchaseResult UNKNOWN_TO_SDK_VERSION
public static PurchaseResult[] values()
for (PurchaseResult c : PurchaseResult.values()) System.out.println(c);
public static PurchaseResult valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getValue()
public String toString()
toString
in class Enum<PurchaseResult>
public static PurchaseResult fromValue(String text)
Copyright © 2023. All rights reserved.