DefaultDeviceRegistration
A concrete DeviceRegistration which only holds the base properties.
Used by most devices, including Smartphone.
- Inheritance
-
- Object
- Serializable
- DeviceRegistration
- DefaultDeviceRegistration
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
DefaultDeviceRegistration.fromJson
DefaultDeviceRegistration
Create a new DefaultDeviceRegistration.
deviceId- a unique id for this device. If not specified, a unique id will be generated.deviceDisplayName- an optional concise textual representation for display purposes describing the key specifications of the device.registrationCreatedOn- the time in UTC when this registration was created. If not specified, the time of creation will be used.
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
Methods
toJson
Return a JSON encoding of this object.