Package com.creditcall.chipdnamobile
Class AvailablePinPad
java.lang.Object
com.creditcall.chipdnamobile.AvailablePinPad
An available PIN pad from
ChipDnaMobileSerializer.deserializeAvailablePinPadsWithId(String) XML,
including optional Bluetooth device ID when present.
Order matches the source XML, which matters when several devices share the same display name.
Use getConnectionType() as the value for ParameterKeys.PinPadConnectionType
(it matches ParameterValues.BluetoothConnectionType, ParameterValues.BluetoothLeConnectionType,
or ParameterValues.UsbConnectionType as appropriate). Use getName() as the value for
ParameterKeys.PinPadName; when present, getBluetoothId() for ParameterKeys.BluetoothDeviceId.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AvailablePinPad
-
-
Method Details
-
getConnectionType
- Returns:
- The
connection-typeXML attribute (uppercase), i.e. the same string as the appropriateParameterValuesconstant forParameterKeys.PinPadConnectionType(e.g.ParameterValues.BluetoothConnectionType,ParameterValues.BluetoothLeConnectionType,ParameterValues.UsbConnectionType). This is a parameter value, not aParameterKeysname.
-
getName
- Returns:
- PIN pad display name from element text.
-
getBluetoothId
- Returns:
- Bluetooth device ID (MAC) from
bluetooth-id, ornullif absent or empty.
-