Example #1
0
 internal DeviceRegistrationResult(
     TpmRegistrationResult tpm   = default(TpmRegistrationResult),
     X509RegistrationResult x509 = default(X509RegistrationResult),
     SymmetricKeyRegistrationResult symmetricKey = default(SymmetricKeyRegistrationResult),
     string registrationId       = default(string),
     DateTime?createdDateTimeUtc = default(DateTime?),
     string assignedHub          = default(string),
     string deviceId             = default(string),
     string status                   = default(string),
     string substatus                = default(string),
     string generationId             = default(string),
     DateTime?lastUpdatedDateTimeUtc = default(DateTime?),
     int?errorCode                   = default(int?),
     string errorMessage             = default(string),
     string etag  = default(string),
     JRaw payload = default(JRaw))
 {
     Tpm                    = tpm;
     X509                   = x509;
     SymmetricKey           = symmetricKey;
     RegistrationId         = registrationId;
     CreatedDateTimeUtc     = createdDateTimeUtc;
     AssignedHub            = assignedHub;
     DeviceId               = deviceId;
     Status                 = status;
     Substatus              = substatus;
     GenerationId           = generationId;
     LastUpdatedDateTimeUtc = lastUpdatedDateTimeUtc;
     ErrorCode              = errorCode;
     ErrorMessage           = errorMessage;
     Etag                   = etag;
     Payload                = payload;
     CustomInit();
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the DeviceRegistrationResult class.
 /// </summary>
 /// <param name="status">Possible values include: 'unassigned',
 /// 'assigning', 'assigned', 'failed', 'disabled'</param>
 public DeviceRegistrationResult(
     TpmRegistrationResult tpm   = default(TpmRegistrationResult),
     X509RegistrationResult x509 = default(X509RegistrationResult),
     string registrationId       = default(string),
     DateTime?createdDateTimeUtc = default(DateTime?),
     string assignedHub          = default(string),
     string deviceId             = default(string),
     string status                   = default(string),
     string generationId             = default(string),
     DateTime?lastUpdatedDateTimeUtc = default(DateTime?),
     int?errorCode                   = default(int?),
     string errorMessage             = default(string),
     string etag = default(string))
 {
     Tpm                    = tpm;
     X509                   = x509;
     RegistrationId         = registrationId;
     CreatedDateTimeUtc     = createdDateTimeUtc;
     AssignedHub            = assignedHub;
     DeviceId               = deviceId;
     Status                 = status;
     GenerationId           = generationId;
     LastUpdatedDateTimeUtc = lastUpdatedDateTimeUtc;
     ErrorCode              = errorCode;
     ErrorMessage           = errorMessage;
     Etag                   = etag;
     CustomInit();
 }