public static DeleteSmsSignResponse Unmarshall(UnmarshallerContext context)
        {
            DeleteSmsSignResponse deleteSmsSignResponse = new DeleteSmsSignResponse();

            deleteSmsSignResponse.HttpResponse = context.HttpResponse;
            deleteSmsSignResponse.RequestId    = context.StringValue("DeleteSmsSign.RequestId");
            deleteSmsSignResponse.SignName     = context.StringValue("DeleteSmsSign.SignName");
            deleteSmsSignResponse.Code         = context.StringValue("DeleteSmsSign.Code");
            deleteSmsSignResponse.Message      = context.StringValue("DeleteSmsSign.Message");

            return(deleteSmsSignResponse);
        }
コード例 #2
0
ファイル: SmsDemo.cs プロジェクト: breakawayz/smn-sdk-net
        /// <summary>
        /// 删除短信签名
        /// </summary>
        public void DeleteSmsSign()
        {
            // 设置请求对象
            DeleteSmsSignRequest request = new DeleteSmsSignRequest
            {
                SignId = "741213a6ef644e2a8d977a7f82459f7f",
            };

            try
            {
                // 发送请求并返回响应
                DeleteSmsSignResponse response = smnClient.SendRequest(request);
                Console.WriteLine("{0}", response.RequestId);
                Console.ReadLine();
            }
            catch (Exception e)
            {
                // 处理异常
                Console.WriteLine("{0}", e.Message);
            }
        }