-
- All Implemented Interfaces:
-
java.io.Serializable
public abstract class Peripheral implements Serializable
Base class for all peripherals.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
Peripheral.ConnectionType
public enum
Peripheral.PeripheralType
Enum value for the Validic Mobile Library peripheral types which also assist with switch statements
-
Field Summary
Fields Modifier and Type Field Description private int
peripheralID
private String
model
private String
manufacturer
private String
imageUrl
private Peripheral.ConnectionType
connectionType
-
Constructor Summary
Constructors Constructor Description Peripheral()
Peripheral(Peripheral.ConnectionType classification)
-
Method Summary
Modifier and Type Method Description int
getPeripheralID()
The Validic internal number assigned to the peripheral. String
getModel()
Customer-facing model number String
getManufacturer()
Customer-facing manufacturer String
getImageUrl()
Peripheral.ConnectionType
getConnectionType()
static Peripheral
getPeripheralForConnectionTypeAndId(String connectionType, int peripheralId)
Returns a Peripheral for the given {@code connectionType}
and{@code peripheralId}
String
getName()
Customer-facing name: manufacturer + model boolean
isDisabled()
Peripheral's support status Peripheral.PeripheralType
getType()
boolean
equals(Object o)
-
-
Constructor Detail
-
Peripheral
Peripheral()
-
Peripheral
Peripheral(Peripheral.ConnectionType classification)
-
-
Method Detail
-
getPeripheralID
int getPeripheralID()
The Validic internal number assigned to the peripheral.
-
getManufacturer
String getManufacturer()
Customer-facing manufacturer
-
getImageUrl
String getImageUrl()
-
getConnectionType
Peripheral.ConnectionType getConnectionType()
-
getPeripheralForConnectionTypeAndId
@Nullable() static Peripheral getPeripheralForConnectionTypeAndId(String connectionType, int peripheralId)
Returns a Peripheral for the given
{@code connectionType}
and{@code peripheralId}
-
isDisabled
boolean isDisabled()
Peripheral's support status
-
getType
@NonNull() Peripheral.PeripheralType getType()
-
-
-
-