/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeDashboardResponse response = new DescribeDashboardResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Dashboard", targetDepth)) { var unmarshaller = DashboardUnmarshaller.Instance; response.Dashboard = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RequestId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RequestId = unmarshaller.Unmarshall(context); continue; } } response.Status = (int)context.ResponseData.StatusCode; return(response); }
public static DescribeDashboardResponse Unmarshall(UnmarshallerContext context) { DescribeDashboardResponse describeDashboardResponse = new DescribeDashboardResponse(); describeDashboardResponse.HttpResponse = context.HttpResponse; describeDashboardResponse.RequestId = context.StringValue("DescribeDashboard.RequestId"); describeDashboardResponse.Success = context.BooleanValue("DescribeDashboard.Success"); describeDashboardResponse.Code = context.StringValue("DescribeDashboard.Code"); describeDashboardResponse.Message = context.StringValue("DescribeDashboard.Message"); describeDashboardResponse.Overview = context.StringValue("DescribeDashboard.Overview"); return(describeDashboardResponse); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeDashboardResponse response = new DescribeDashboardResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("dashboardArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DashboardArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dashboardCreationDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.DashboardCreationDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dashboardDefinition", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DashboardDefinition = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dashboardDescription", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DashboardDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dashboardId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DashboardId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dashboardLastUpdateDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.DashboardLastUpdateDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dashboardName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DashboardName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("projectId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ProjectId = unmarshaller.Unmarshall(context); continue; } } return(response); }