Enum MGSDKConfigurationState
- java.lang.Object
-
- java.lang.Enum<MGSDKConfigurationState>
-
- com.gemalto.mfs.mwsdk.mobilegateway.MGSDKConfigurationState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MGSDKConfigurationState>
public enum MGSDKConfigurationState extends java.lang.Enum<MGSDKConfigurationState>
This class encapsulates all the different configuration states that SDK can be in.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIGURED
This will be the configuration state when all ofMGConnectionConfiguration
,MGTransactionHistoryConfiguration
andMGWalletConfiguration
are configured.MG_CARD_DIGITIZATION_CONFIGURED
This will be the configuration state when onlyMGConnectionConfiguration
andMGWalletConfiguration
are configured.MG_TRANSACTION_HISTORY_CONFIGURED
This will be the configuration state when onlyMGTransactionHistoryConfiguration
andMGWalletConfiguration
are configured.NOT_CONFIGURED
This will be the configuration state when there is no configuration done.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MGSDKConfigurationState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MGSDKConfigurationState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_CONFIGURED
public static final MGSDKConfigurationState NOT_CONFIGURED
This will be the configuration state when there is no configuration done.
-
MG_CARD_DIGITIZATION_CONFIGURED
public static final MGSDKConfigurationState MG_CARD_DIGITIZATION_CONFIGURED
This will be the configuration state when onlyMGConnectionConfiguration
andMGWalletConfiguration
are configured. This means digitization APIs of Payment and Transit cards are configured for usage. But Transaction History and Notifications API is NOT configured for usage.
-
MG_TRANSACTION_HISTORY_CONFIGURED
public static final MGSDKConfigurationState MG_TRANSACTION_HISTORY_CONFIGURED
This will be the configuration state when onlyMGTransactionHistoryConfiguration
andMGWalletConfiguration
are configured. This means Transaction History and Notifications API is configured for usage. But digitization APIs of Payment and Transit cards are NOT configured for usage
-
CONFIGURED
public static final MGSDKConfigurationState CONFIGURED
This will be the configuration state when all ofMGConnectionConfiguration
,MGTransactionHistoryConfiguration
andMGWalletConfiguration
are configured.
-
-
Method Detail
-
values
public static MGSDKConfigurationState[] 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 (MGSDKConfigurationState c : MGSDKConfigurationState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MGSDKConfigurationState 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 namejava.lang.NullPointerException
- if the argument is null
-
-