Package com.six.timapi.constants
Enum ConnectionMode
- java.lang.Object
-
- java.lang.Enum<ConnectionMode>
-
- com.six.timapi.constants.ConnectionMode
-
- All Implemented Interfaces:
Serializable
,Comparable<ConnectionMode>
public enum ConnectionMode extends Enum<ConnectionMode>
Defines the type of connection between ECR and EFT Terminal.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BROADCAST
ECR and EFT Terminal exchange connection parameters using broadcasting before connecting.INTENT
Intent connection.NONE
Using only Saferpay.ON_FIX_IP
ECR and EFT Terminal connect directly using pre-configured connection parameters.PCL
PCL connection.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConnectionMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConnectionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BROADCAST
public static final ConnectionMode BROADCAST
ECR and EFT Terminal exchange connection parameters using broadcasting before connecting.
-
ON_FIX_IP
public static final ConnectionMode ON_FIX_IP
ECR and EFT Terminal connect directly using pre-configured connection parameters.
-
PCL
public static final ConnectionMode PCL
PCL connection. For use on Android only.
-
INTENT
public static final ConnectionMode INTENT
Intent connection. For use on Android only.
-
NONE
public static final ConnectionMode NONE
Using only Saferpay. No ECR attached.
-
-
Method Detail
-
values
public static ConnectionMode[] 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 (ConnectionMode c : ConnectionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConnectionMode 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
-
-