Package com.thalesgroup.gemalto.d1
Enum PushResponseKey
- java.lang.Object
-
- java.lang.Enum<PushResponseKey>
-
- com.thalesgroup.gemalto.d1.PushResponseKey
-
- All Implemented Interfaces:
Serializable
,Comparable<PushResponseKey>
public enum PushResponseKey extends Enum<PushResponseKey>
An enumeration value for Push Message from the server.- Since:
- 2.3.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CARD_ID
Contains the card identifier from Push Message.LAST_CALL_TIMESTAMP
Last call timestamp value which is only available if the MESSAGE_TYPE isTYPE_TRANSACTION_NOTIFICATION
You can use this value when requesting a transaction history.MESSAGE_TYPE
This key is used to specify the message type.
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE_AUTHN
The message received is of an Authn type and has been processed by the SDK.static String
TYPE_CARD_STATE
A message is received to notify the Application that there is an update for Card State.static String
TYPE_REPLENISHMENT
A message is received to notify that a replenishment is required.static String
TYPE_TRANSACTION_NOTIFICATION
A message is received to notify that a new transaction has been performed recently.static String
TYPE_UNKNOWN
The message received is not recognized by the SDK.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PushResponseKey
valueOf(String name)
Returns the enum constant of this type with the specified name.static PushResponseKey[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MESSAGE_TYPE
public static final PushResponseKey MESSAGE_TYPE
This key is used to specify the message type. Currently, the following types are supported:
-
CARD_ID
public static final PushResponseKey CARD_ID
Contains the card identifier from Push Message. This value is only available if the MESSAGE_TYPE is eitherTYPE_REPLENISHMENT
orTYPE_TRANSACTION_NOTIFICATION
.
-
LAST_CALL_TIMESTAMP
public static final PushResponseKey LAST_CALL_TIMESTAMP
Last call timestamp value which is only available if the MESSAGE_TYPE isTYPE_TRANSACTION_NOTIFICATION
You can use this value when requesting a transaction history.
-
-
Field Detail
-
TYPE_UNKNOWN
public static final String TYPE_UNKNOWN
The message received is not recognized by the SDK.- See Also:
- Constant Field Values
-
TYPE_CARD_STATE
public static final String TYPE_CARD_STATE
A message is received to notify the Application that there is an update for Card State. This notification only happen if data contains key="sender" with value="CPS" When this type is received, application will receive another callback onD1PayDataChangedListener
- See Also:
- Constant Field Values
-
TYPE_REPLENISHMENT
public static final String TYPE_REPLENISHMENT
A message is received to notify that a replenishment is required. This notification only occurs if the data contains key="sender" with value="MG"- See Also:
- Constant Field Values
-
TYPE_TRANSACTION_NOTIFICATION
public static final String TYPE_TRANSACTION_NOTIFICATION
A message is received to notify that a new transaction has been performed recently. This notification only occurs if the data contains key="sender" with value="TNS"- See Also:
- Constant Field Values
-
TYPE_AUTHN
public static final String TYPE_AUTHN
The message received is of an Authn type and has been processed by the SDK.- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static PushResponseKey[] 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 (PushResponseKey c : PushResponseKey.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PushResponseKey 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 nameNullPointerException
- if the argument is null
-
-