/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateResourceResponse response = new UpdateResourceResponse(); 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) { UpdateResourceResponse response = new UpdateResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("parentId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ParentId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("path", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Path = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("pathPart", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PathPart = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("resourceMethods", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, Method, StringUnmarshaller, MethodUnmarshaller>(StringUnmarshaller.Instance, MethodUnmarshaller.Instance); response.ResourceMethods = 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) { UpdateResourceResponse response = new UpdateResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ProgressEvent", targetDepth)) { var unmarshaller = ProgressEventUnmarshaller.Instance; response.ProgressEvent = unmarshaller.Unmarshall(context); continue; } } return(response); }