public static CreateEvaluationResponse Unmarshall(UnmarshallerContext _ctx) { CreateEvaluationResponse createEvaluationResponse = new CreateEvaluationResponse(); createEvaluationResponse.HttpResponse = _ctx.HttpResponse; createEvaluationResponse.RequestId = _ctx.StringValue("CreateEvaluation.RequestId"); createEvaluationResponse.Success = _ctx.BooleanValue("CreateEvaluation.Success"); createEvaluationResponse.ErrorCode = _ctx.StringValue("CreateEvaluation.ErrorCode"); createEvaluationResponse.Message = _ctx.StringValue("CreateEvaluation.Message"); return(createEvaluationResponse); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateEvaluationResponse response = new CreateEvaluationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("EvaluationId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.EvaluationId = unmarshaller.Unmarshall(context); continue; } } return(response); }