/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { StopChannelResponse response = new StopChannelResponse(); 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) { StopChannelResponse response = new StopChannelResponse(); 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("destinations", targetDepth)) { var unmarshaller = new ListUnmarshaller <OutputDestination, OutputDestinationUnmarshaller>(OutputDestinationUnmarshaller.Instance); response.Destinations = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("egressEndpoints", targetDepth)) { var unmarshaller = new ListUnmarshaller <ChannelEgressEndpoint, ChannelEgressEndpointUnmarshaller>(ChannelEgressEndpointUnmarshaller.Instance); response.EgressEndpoints = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("encoderSettings", targetDepth)) { var unmarshaller = EncoderSettingsUnmarshaller.Instance; response.EncoderSettings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("inputAttachments", targetDepth)) { var unmarshaller = new ListUnmarshaller <InputAttachment, InputAttachmentUnmarshaller>(InputAttachmentUnmarshaller.Instance); response.InputAttachments = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("inputSpecification", targetDepth)) { var unmarshaller = InputSpecificationUnmarshaller.Instance; response.InputSpecification = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("logLevel", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LogLevel = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("pipelinesRunningCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.PipelinesRunningCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("roleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RoleArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("state", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.State = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = unmarshaller.Unmarshall(context); continue; } } return(response); }