acceptedRegistration method
DeviceRegistration
acceptedRegistration(
- DeviceRegistration registration
inherited
The registration in the form the deployment service accepts for this device.
CARP Core only accepts a DefaultDeviceRegistration for its Smartphone
and CustomProtocolDevice types, which protocols from CAMS 1.x also use.
For these, registration is converted. Any other registration is returned as is.
ponytail: a core BLEHeartRateDevice needs a MAC address, which iOS does not expose - not converted.
Implementation
DeviceRegistration acceptedRegistration(DeviceRegistration registration) =>
_defaultRegistrationTypes.contains($type) && registration is! DefaultDeviceRegistration
? DefaultDeviceRegistration(
deviceId: registration.deviceId,
deviceDisplayName: registration.deviceDisplayName,
registrationCreatedOn: registration.registrationCreatedOn,
)
: registration;