public static DescribeAppResponse Unmarshall(UnmarshallerContext context) { DescribeAppResponse describeAppResponse = new DescribeAppResponse(); describeAppResponse.HttpResponse = context.HttpResponse; describeAppResponse.RequestId = context.StringValue("DescribeApp.RequestId"); describeAppResponse.AppId = context.LongValue("DescribeApp.AppId"); describeAppResponse.AppName = context.StringValue("DescribeApp.AppName"); describeAppResponse.Description = context.StringValue("DescribeApp.Description"); describeAppResponse.CreatedTime = context.StringValue("DescribeApp.CreatedTime"); describeAppResponse.ModifiedTime = context.StringValue("DescribeApp.ModifiedTime"); return(describeAppResponse); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeAppResponse response = new DescribeAppResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("app", targetDepth)) { var unmarshaller = AppUnmarshaller.Instance; response.App = unmarshaller.Unmarshall(context); continue; } } return(response); }
public static DescribeAppResponse Unmarshall(UnmarshallerContext _ctx) { DescribeAppResponse describeAppResponse = new DescribeAppResponse(); describeAppResponse.HttpResponse = _ctx.HttpResponse; describeAppResponse.RequestId = _ctx.StringValue("DescribeApp.requestId"); DescribeAppResponse.DescribeApp_Result result = new DescribeAppResponse.DescribeApp_Result(); result.Id = _ctx.StringValue("DescribeApp.Result.id"); result.Description = _ctx.StringValue("DescribeApp.Result.description"); result.Status = _ctx.StringValue("DescribeApp.Result.status"); result.Type = _ctx.StringValue("DescribeApp.Result.type"); result.ClusterName = _ctx.StringValue("DescribeApp.Result.clusterName"); result.AlgoDeploymentId = _ctx.IntegerValue("DescribeApp.Result.algoDeploymentId"); result.Created = _ctx.IntegerValue("DescribeApp.Result.created"); result.AutoSwitch = _ctx.BooleanValue("DescribeApp.Result.autoSwitch"); result.ProgressPercent = _ctx.IntegerValue("DescribeApp.Result.progressPercent"); result.Schema = _ctx.StringValue("DescribeApp.Result.schema"); List <string> result_fetchFields = new List <string>(); for (int i = 0; i < _ctx.Length("DescribeApp.Result.FetchFields.Length"); i++) { result_fetchFields.Add(_ctx.StringValue("DescribeApp.Result.FetchFields[" + i + "]")); } result.FetchFields = result_fetchFields; DescribeAppResponse.DescribeApp_Result.DescribeApp_Quota quota = new DescribeAppResponse.DescribeApp_Result.DescribeApp_Quota(); quota.DocSize = _ctx.IntegerValue("DescribeApp.Result.Quota.docSize"); quota.ComputeResource = _ctx.IntegerValue("DescribeApp.Result.Quota.computeResource"); quota.Qps = _ctx.IntegerValue("DescribeApp.Result.Quota.qps"); quota.Spec = _ctx.StringValue("DescribeApp.Result.Quota.spec"); result.Quota = quota; describeAppResponse.Result = result; return(describeAppResponse); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeAppResponse response = new DescribeAppResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AppArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AppArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AppName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AppName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AppType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AppType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DomainId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DomainId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FailureReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FailureReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastHealthCheckTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastHealthCheckTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastUserActivityTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastUserActivityTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceSpec", targetDepth)) { var unmarshaller = ResourceSpecUnmarshaller.Instance; response.ResourceSpec = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UserProfileName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.UserProfileName = unmarshaller.Unmarshall(context); continue; } } return(response); }