/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateCertificateResponse response = new CreateCertificateResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("certificate", targetDepth)) { var unmarshaller = CertificateSummaryUnmarshaller.Instance; response.Certificate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("operations", targetDepth)) { var unmarshaller = new ListUnmarshaller <Operation, OperationUnmarshaller>(OperationUnmarshaller.Instance); response.Operations = unmarshaller.Unmarshall(context); continue; } } return(response); }
public static CreateCertificateResponse Unmarshall(UnmarshallerContext context) { CreateCertificateResponse createCertificateResponse = new CreateCertificateResponse(); createCertificateResponse.HttpResponse = context.HttpResponse; createCertificateResponse.RequestId = context.StringValue("CreateCertificate.RequestId"); return(createCertificateResponse); }
public static CreateCertificateResponse Unmarshall(UnmarshallerContext _ctx) { CreateCertificateResponse createCertificateResponse = new CreateCertificateResponse(); createCertificateResponse.HttpResponse = _ctx.HttpResponse; createCertificateResponse.RequestId = _ctx.StringValue("CreateCertificate.RequestId"); createCertificateResponse.CertificateId = _ctx.LongValue("CreateCertificate.CertificateId"); return(createCertificateResponse); }