Beispiel #1
0
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DeleteTrafficMirrorSessionResponse response = new DeleteTrafficMirrorSessionResponse();

            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("trafficMirrorSessionId", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.TrafficMirrorSessionId = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return(response);
        }
Beispiel #2
0
        public static DeleteTrafficMirrorSessionResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DeleteTrafficMirrorSessionResponse deleteTrafficMirrorSessionResponse = new DeleteTrafficMirrorSessionResponse();

            deleteTrafficMirrorSessionResponse.HttpResponse = _ctx.HttpResponse;
            deleteTrafficMirrorSessionResponse.RequestId    = _ctx.StringValue("DeleteTrafficMirrorSession.RequestId");

            return(deleteTrafficMirrorSessionResponse);
        }