Package com.creditcall.chipdnamobile
Class DeviceStatus
- java.lang.Object
-
- com.creditcall.chipdnamobile.DeviceStatus
-
public class DeviceStatus extends java.lang.ObjectCreated by Shingai on 03/08/2017.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceStatus.DeviceStatusEnum
-
Constructor Summary
Constructors Constructor Description DeviceStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAvailabilityError()If filled the error why the device is currently unavailable.intgetBatteryChargePercentage()Battery charge percentage of the currently connected device.java.lang.StringgetBatteryChargingStatus()Charging status of the currently connected device.java.lang.StringgetBatteryChargingStatusUpdateDateTime()Date and time for the last battery charging status update of the currently connected device.java.lang.StringgetBatteryChargingStatusUpdateDateTimeFormat()Date and time format used for getBatteryChargingStatusUpdateDateTime().java.util.HashMap<java.lang.String,java.lang.String>getErrorInformation()NSDictionary containing key value pairs with information about the availablilityError.java.lang.StringgetFirmwareName()Firmware name of the currently connected device.java.lang.StringgetFirmwareVersion()Firmware version of the currently connected device.java.lang.StringgetKernelsHash()Kernel version of the connected PIN pad.java.lang.StringgetMake()Make of the currently connected device.java.lang.StringgetModel()Model of the currently connected device.java.lang.StringgetName()PIN pad name of currently connected device.java.lang.StringgetOsVersion()Operating system version of the connected PIN pad.intgetRawBatteryChargePercentage()Raw Battery charge percentage of the currently connected device.java.lang.StringgetRevision()Revision of the currently connected PIN pad.java.lang.StringgetSerialNumber()Serial number of currently connected PIN pad.DeviceStatus.DeviceStatusEnumgetStatus()The current connection status of the device.voidsetKernelsHash(java.lang.String kernelsHash)voidsetOsVersion(java.lang.String osVersion)
-
-
-
Method Detail
-
getStatus
public DeviceStatus.DeviceStatusEnum getStatus()
The current connection status of the device.
-
getAvailabilityError
public java.lang.String getAvailabilityError()
If filled the error why the device is currently unavailable.
-
getErrorInformation
public java.util.HashMap<java.lang.String,java.lang.String> getErrorInformation()
NSDictionary containing key value pairs with information about the availablilityError.
-
getName
public java.lang.String getName()
PIN pad name of currently connected device.
-
getRawBatteryChargePercentage
public int getRawBatteryChargePercentage()
Raw Battery charge percentage of the currently connected device.
-
getBatteryChargePercentage
public int getBatteryChargePercentage()
Battery charge percentage of the currently connected device.
-
getBatteryChargingStatus
public java.lang.String getBatteryChargingStatus()
Charging status of the currently connected device. Returns "Not Charging", "Charging" or "Fully Charged".
-
getBatteryChargingStatusUpdateDateTime
public java.lang.String getBatteryChargingStatusUpdateDateTime()
Date and time for the last battery charging status update of the currently connected device. Returned using the local date, time, and time zone of the mobile device. Format specified by getBatteryChargingStatusUpdateDateTimeFormat().
-
getBatteryChargingStatusUpdateDateTimeFormat
public java.lang.String getBatteryChargingStatusUpdateDateTimeFormat()
Date and time format used for getBatteryChargingStatusUpdateDateTime(). Returns "dd/MM/yyyy HH:mm:ss".
-
getMake
public java.lang.String getMake()
Make of the currently connected device.
-
getModel
public java.lang.String getModel()
Model of the currently connected device.
-
getFirmwareName
public java.lang.String getFirmwareName()
Firmware name of the currently connected device.
-
getFirmwareVersion
public java.lang.String getFirmwareVersion()
Firmware version of the currently connected device.
-
getSerialNumber
public java.lang.String getSerialNumber()
Serial number of currently connected PIN pad.
-
getOsVersion
public java.lang.String getOsVersion()
Operating system version of the connected PIN pad.
-
setOsVersion
public void setOsVersion(java.lang.String osVersion)
-
getKernelsHash
public java.lang.String getKernelsHash()
Kernel version of the connected PIN pad.
-
setKernelsHash
public void setKernelsHash(java.lang.String kernelsHash)
-
getRevision
public java.lang.String getRevision()
Revision of the currently connected PIN pad.
-
-