/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { CreateTrafficMirrorFilterResponse response = new CreateTrafficMirrorFilterResponse(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth = 2; } while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("clientToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ClientToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("trafficMirrorFilter", targetDepth)) { var unmarshaller = TrafficMirrorFilterUnmarshaller.Instance; response.TrafficMirrorFilter = unmarshaller.Unmarshall(context); continue; } } } return(response); }
public static CreateTrafficMirrorFilterResponse Unmarshall(UnmarshallerContext _ctx) { CreateTrafficMirrorFilterResponse createTrafficMirrorFilterResponse = new CreateTrafficMirrorFilterResponse(); createTrafficMirrorFilterResponse.HttpResponse = _ctx.HttpResponse; createTrafficMirrorFilterResponse.RequestId = _ctx.StringValue("CreateTrafficMirrorFilter.RequestId"); createTrafficMirrorFilterResponse.TrafficMirrorFilterId = _ctx.StringValue("CreateTrafficMirrorFilter.TrafficMirrorFilterId"); return(createTrafficMirrorFilterResponse); }