public class DeviceRegistrationState extends Object implements Serializable
Example of JSON format:
{
"registrationId":"validRegistrationId",
"createdDateTimeUtc": "2017-09-28T16:29:42.3447817Z",
"assignedHub":"ContosoIoTHub.azure-devices.net",
"deviceId":"ContosoDevice-123",
"status":"assigned"
"lastUpdatedDateTimeUtc": "2017-09-28T16:29:42.3447817Z",
"errorCode":200
"errorMessage":"Succeeded"
"etag": "\"00000000-0000-0000-0000-00000000000\""
}
public DeviceRegistrationState(String json)
This constructor creates an instance of the device registration state filling the class with the information provided in the JSON.
json
- the String
with the JSON received from the provisioning service.IllegalArgumentException
- If the provided JSON is null, empty, or invalid.Copyright © 2022. All rights reserved.