/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateStreamResponse response = new UpdateStreamResponse(); 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) { UpdateStreamResponse response = new UpdateStreamResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("streamArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.StreamArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("streamId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.StreamId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("streamVersion", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.StreamVersion = unmarshaller.Unmarshall(context); continue; } } return(response); }