/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateDomainResponse response = new UpdateDomainResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CreatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DeadLetterQueueUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DeadLetterQueueUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DefaultEncryptionKey", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DefaultEncryptionKey = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DefaultExpirationDays", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.DefaultExpirationDays = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DomainName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DomainName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastUpdatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastUpdatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = unmarshaller.Unmarshall(context); continue; } } return(response); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateDomainResponse response = new UpdateDomainResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("DomainArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DomainArn = unmarshaller.Unmarshall(context); continue; } } return(response); }