/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateEndpointResponse response = new UpdateEndpointResponse(); 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) { UpdateEndpointResponse response = new UpdateEndpointResponse(); var unmarshaller = MessageBodyUnmarshaller.Instance; response.MessageBody = unmarshaller.Unmarshall(context); 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) { UpdateEndpointResponse response = new UpdateEndpointResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("EndpointArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.EndpointArn = 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) { UpdateEndpointResponse response = new UpdateEndpointResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EndpointId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.EndpointId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EndpointUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.EndpointUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EventBuses", targetDepth)) { var unmarshaller = new ListUnmarshaller <EndpointEventBus, EndpointEventBusUnmarshaller>(EndpointEventBusUnmarshaller.Instance); response.EventBuses = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ReplicationConfig", targetDepth)) { var unmarshaller = ReplicationConfigUnmarshaller.Instance; response.ReplicationConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RoleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RoleArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RoutingConfig", targetDepth)) { var unmarshaller = RoutingConfigUnmarshaller.Instance; response.RoutingConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("State", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.State = unmarshaller.Unmarshall(context); continue; } } return(response); }