public static DeleteKeywordResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DeleteKeywordResponse deleteKeywordResponse = new DeleteKeywordResponse();

            deleteKeywordResponse.HttpResponse = _ctx.HttpResponse;
            deleteKeywordResponse.RequestId    = _ctx.StringValue("DeleteKeyword.RequestId");

            return(deleteKeywordResponse);
        }
コード例 #2
0
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            DeleteKeywordResponse response = new DeleteKeywordResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;

            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("Keyword", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.Keyword = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("KeywordAction", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.KeywordAction = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("KeywordMessage", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.KeywordMessage = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("OriginationIdentity", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.OriginationIdentity = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("OriginationIdentityArn", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.OriginationIdentityArn = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return(response);
        }