chengkun
2025-06-05 4080b5997b38ca84b3b203c7101dcadb97b76925
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?php
/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
 
/**
 * 发送短信状态
 *
 * @method string getSerialNo() 获取发送流水号。
 * @method void setSerialNo(string $SerialNo) 设置发送流水号。
 * @method string getPhoneNumber() 获取手机号码,E.164标准,+[国家或地区码][手机号] ,示例如:+8618501234444, 其中前面有一个+号 ,86为国家码,18501234444为手机号。
 * @method void setPhoneNumber(string $PhoneNumber) 设置手机号码,E.164标准,+[国家或地区码][手机号] ,示例如:+8618501234444, 其中前面有一个+号 ,86为国家码,18501234444为手机号。
 * @method integer getFee() 获取计费条数,计费规则请查询 [计费策略](https://cloud.tencent.com/document/product/382/36135)。
 * @method void setFee(integer $Fee) 设置计费条数,计费规则请查询 [计费策略](https://cloud.tencent.com/document/product/382/36135)。
 * @method string getSessionContext() 获取用户 session 内容。
 * @method void setSessionContext(string $SessionContext) 设置用户 session 内容。
 * @method string getCode() 获取短信请求错误码,具体含义请参考 [错误码](https://cloud.tencent.com/document/api/382/55981#6.-.E9.94.99.E8.AF.AF.E7.A0.81),发送成功返回 "Ok"。
 * @method void setCode(string $Code) 设置短信请求错误码,具体含义请参考 [错误码](https://cloud.tencent.com/document/api/382/55981#6.-.E9.94.99.E8.AF.AF.E7.A0.81),发送成功返回 "Ok"。
 * @method string getMessage() 获取短信请求错误码描述。
 * @method void setMessage(string $Message) 设置短信请求错误码描述。
 * @method string getIsoCode() 获取国家码或地区码,例如 CN、US 等,对于未识别出国家码或者地区码,默认返回 DEF,具体支持列表请参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051)。
 * @method void setIsoCode(string $IsoCode) 设置国家码或地区码,例如 CN、US 等,对于未识别出国家码或者地区码,默认返回 DEF,具体支持列表请参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051)。
 */
class SendStatus extends AbstractModel
{
    /**
     * @var string 发送流水号。
     */
    public $SerialNo;
 
    /**
     * @var string 手机号码,E.164标准,+[国家或地区码][手机号] ,示例如:+8618501234444, 其中前面有一个+号 ,86为国家码,18501234444为手机号。
     */
    public $PhoneNumber;
 
    /**
     * @var integer 计费条数,计费规则请查询 [计费策略](https://cloud.tencent.com/document/product/382/36135)。
     */
    public $Fee;
 
    /**
     * @var string 用户 session 内容。
     */
    public $SessionContext;
 
    /**
     * @var string 短信请求错误码,具体含义请参考 [错误码](https://cloud.tencent.com/document/api/382/55981#6.-.E9.94.99.E8.AF.AF.E7.A0.81),发送成功返回 "Ok"。
     */
    public $Code;
 
    /**
     * @var string 短信请求错误码描述。
     */
    public $Message;
 
    /**
     * @var string 国家码或地区码,例如 CN、US 等,对于未识别出国家码或者地区码,默认返回 DEF,具体支持列表请参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051)。
     */
    public $IsoCode;
 
    /**
     * @param string $SerialNo 发送流水号。
     * @param string $PhoneNumber 手机号码,E.164标准,+[国家或地区码][手机号] ,示例如:+8618501234444, 其中前面有一个+号 ,86为国家码,18501234444为手机号。
     * @param integer $Fee 计费条数,计费规则请查询 [计费策略](https://cloud.tencent.com/document/product/382/36135)。
     * @param string $SessionContext 用户 session 内容。
     * @param string $Code 短信请求错误码,具体含义请参考 [错误码](https://cloud.tencent.com/document/api/382/55981#6.-.E9.94.99.E8.AF.AF.E7.A0.81),发送成功返回 "Ok"。
     * @param string $Message 短信请求错误码描述。
     * @param string $IsoCode 国家码或地区码,例如 CN、US 等,对于未识别出国家码或者地区码,默认返回 DEF,具体支持列表请参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051)。
     */
    function __construct()
    {
 
    }
 
    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("SerialNo",$param) and $param["SerialNo"] !== null) {
            $this->SerialNo = $param["SerialNo"];
        }
 
        if (array_key_exists("PhoneNumber",$param) and $param["PhoneNumber"] !== null) {
            $this->PhoneNumber = $param["PhoneNumber"];
        }
 
        if (array_key_exists("Fee",$param) and $param["Fee"] !== null) {
            $this->Fee = $param["Fee"];
        }
 
        if (array_key_exists("SessionContext",$param) and $param["SessionContext"] !== null) {
            $this->SessionContext = $param["SessionContext"];
        }
 
        if (array_key_exists("Code",$param) and $param["Code"] !== null) {
            $this->Code = $param["Code"];
        }
 
        if (array_key_exists("Message",$param) and $param["Message"] !== null) {
            $this->Message = $param["Message"];
        }
 
        if (array_key_exists("IsoCode",$param) and $param["IsoCode"] !== null) {
            $this->IsoCode = $param["IsoCode"];
        }
    }
}