DeviceRegistrationState Class

  • java.lang.Object
    • java.io.Serializable
      • Serializable
        • com.microsoft.azure.sdk.iot.provisioning.service.configs.DeviceRegistrationState

public class DeviceRegistrationState extends Serializable

Representation of a single Device Provisioning Service device registration state with a JSON deserializer.

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\""

}

</code></pre></p>

Constructor Summary

Constructor Description
DeviceRegistrationState(String json)

CONSTRUCTOR

This constructor creates an instance of the device registration state filling the class with the information provided in the JSON.

Inherited Members

Constructor Details

DeviceRegistrationState

public DeviceRegistrationState(String json)

CONSTRUCTOR

This constructor creates an instance of the device registration state filling the class with the information provided in the JSON.

Parameters:

json -

theString 

</code> with the JSON received from the provisioning service. </p>

Throws:

IllegalArgumentException - If the provided JSON is null, empty, or invalid.

Applies to