DeviceRegistration constructor
Create a new DeviceRegistration
deviceId
- a unique id for this device. If not specified, a unique id will be generated.registrationCreationDate
- the timestamp in zulu when this registration was created. If not specified, the time of creation will be used.
Implementation
DeviceRegistration([
String? deviceId,
DateTime? registrationCreationDate,
]) : super() {
this.registrationCreationDate =
registrationCreationDate ?? DateTime.now().toUtc();
this.deviceId = deviceId ?? const Uuid().v1();
}