BulkEnrollmentOperationResult 类

定义

Representation of a single Device Provisioning Service bulk operation result with a JSON deserializer.

This result is returned as a result of the ProvisioningServiceClient#runBulkEnrollmentOperation(BulkOperationMode, Collection).

The provisioning service provides general bulk result in the isSuccessful, and a individual error result for each enrolment in the bulk.

The following JSON is an example of the result from a bulk operation.

{
    "isSuccessful":true,

    "errors": [

        {

            "registrationId":"validRegistrationId1",

            "errorCode":200,

            "errorStatus":"Succeeded"

        },

        {

            "registrationId":"validRegistrationId2",

            "errorCode":200,

            "errorStatus":"Succeeded"

        }

    ]

}

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

public class BulkEnrollmentOperationResult
继承
java.lang.Object
BulkEnrollmentOperationResult

构造函数

BulkEnrollmentOperationResult()

Empty constructor

Used only by the tools that will deserialize this class.

BulkEnrollmentOperationResult(String json)

CONSTRUCTOR

This constructor creates an instance of the enrollment filling the class with the information provided in the JSON.

方法

getErrors()

Getter for the bulk of errors.

getSuccessful()

Getter for the Bulk Operation successful.

toString()

Creates a pretty print JSON with the content of this class and subclasses.

适用于