com.txtnation.android
Enum BillingManager.Environment

java.lang.Object
  extended by java.lang.Enum<BillingManager.Environment>
      extended by com.txtnation.android.BillingManager.Environment
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BillingManager.Environment>
Enclosing class:
BillingManager

public static enum BillingManager.Environment
extends java.lang.Enum<BillingManager.Environment>


Enum Constant Summary
LOCAL
          Fake out server requests and response.
PRODUCTION
          sends billing request to a production server.
TEST
          sends request a clone server of the production server.
 
Method Summary
static BillingManager.Environment valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BillingManager.Environment[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PRODUCTION

public static final BillingManager.Environment PRODUCTION
sends billing request to a production server. set this mode only when going live.


LOCAL

public static final BillingManager.Environment LOCAL
Fake out server requests and response. You don't need any server connections or Internet to test your TAL integration. Start developing with this mode.


TEST

public static final BillingManager.Environment TEST
sends request a clone server of the production server.

Method Detail

values

public static BillingManager.Environment[] 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 (BillingManager.Environment c : BillingManager.Environment.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BillingManager.Environment valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null