Class DeviceIdentifier
-
- All Implemented Interfaces:
public final class DeviceIdentifierWhat is this thing? This defines the platform that various entities can be attached to. An example would be a Raspberry Pi hosting multiple sensors.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringmanufacturerprivate final Stringmodelprivate final List<String>identifiersprivate final Stringname
-
Constructor Summary
Constructors Constructor Description DeviceIdentifier(String manufacturer, String model, List<String> identifiers, String name)DeviceIdentifier(String manufacturer, String model, List<String> identifiers)DeviceIdentifier(String manufacturer, String model)
-
Method Summary
Modifier and Type Method Description final StringgetManufacturer()final StringgetModel()final List<String>getIdentifiers()final StringgetName()final JSONObjectasJSON()-
-
Constructor Detail
-
DeviceIdentifier
DeviceIdentifier(String manufacturer, String model, List<String> identifiers, String name)
- Parameters:
manufacturer- who made itmodel- what "type" of thing is thisidentifiers- a list of unique identifiers: defaults to the device'shostnameif availblename- the name for the device: defaults to the firstidentifier
-
DeviceIdentifier
DeviceIdentifier(String manufacturer, String model, List<String> identifiers)
- Parameters:
manufacturer- who made itmodel- what "type" of thing is thisidentifiers- a list of unique identifiers: defaults to the device'shostnameif availble
-
-
Method Detail
-
getManufacturer
final String getManufacturer()
-
getIdentifiers
final List<String> getIdentifiers()
-
asJSON
final JSONObject asJSON()
-
-
-
-