public static UpdateProductTopicResponse Unmarshall(UnmarshallerContext context)
        {
            UpdateProductTopicResponse updateProductTopicResponse = new UpdateProductTopicResponse();

            updateProductTopicResponse.HttpResponse = context.HttpResponse;
            updateProductTopicResponse.RequestId    = context.StringValue("UpdateProductTopic.RequestId");
            updateProductTopicResponse.Success      = context.BooleanValue("UpdateProductTopic.Success");
            updateProductTopicResponse.ErrorMessage = context.StringValue("UpdateProductTopic.ErrorMessage");

            return(updateProductTopicResponse);
        }
示例#2
0
        //更新Topic类信息
        public void TestUpdateProductTopic()
        {
            DefaultAcsClient acsClient = Demo.IotClient.GetClient();
            String           TopicId   = "5281467";

            UpdateProductTopicRequest request = new UpdateProductTopicRequest();

            request.TopicId        = TopicId;
            request.TopicShortName = "device0826/user/login";
            request.Operation      = "ALL";
            request.Desc           = "operation change pub to all";

            UpdateProductTopicResponse response = acsClient.GetAcsResponse(request);

            Console.WriteLine("Update Product Topic: " + response.Success);
            if (!(bool)response.Success)
            {
                Console.WriteLine(response.Code + ", " + response.ErrorMessage);
                Console.ReadKey();
                return;
            }
        }