代码修改后的版本,全部提交

This commit is contained in:
ss001
2026-02-07 15:48:27 +08:00
parent cccbaa37c9
commit c2cda58c65
15604 changed files with 2455502 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class AddSignStatus : AbstractModel
{
/// <summary>
/// 签名Id。
/// </summary>
[JsonProperty("SignId")]
public ulong? SignId{ get; set; }
/// <summary>
/// 签名申请Id。
/// </summary>
[JsonProperty("SignApplyId")]
public ulong? SignApplyId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SignId", this.SignId);
this.SetParamSimple(map, prefix + "SignApplyId", this.SignApplyId);
}
}
}

View File

@@ -0,0 +1,113 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class AddSmsSignRequest : AbstractModel
{
/// <summary>
/// 签名名称。
/// </summary>
[JsonProperty("SignName")]
public string SignName{ get; set; }
/// <summary>
/// 签名类型。其中每种类型后面标注了其可选的 DocumentType证明类型
/// 0公司0123
/// 1APP01234
/// 2网站01235
/// 3公众号或者小程序01236
/// 4商标7
/// 5政府/机关事业单位/其他机构23
/// 注:必须按照对应关系选择证明类型,否则会审核失败。
/// </summary>
[JsonProperty("SignType")]
public ulong? SignType{ get; set; }
/// <summary>
/// 证明类型:
/// 0三证合一。
/// 1企业营业执照。
/// 2组织机构代码证书。
/// 3社会信用代码证书。
/// 4应用后台管理截图个人开发APP
/// 5网站备案后台截图个人开发网站
/// 6小程序设置页面截图个人认证小程序
/// 7商标注册书。
/// </summary>
[JsonProperty("DocumentType")]
public ulong? DocumentType{ get; set; }
/// <summary>
/// 是否国际/港澳台短信:
/// 0表示国内短信。
/// 1表示国际/港澳台短信。
/// </summary>
[JsonProperty("International")]
public ulong? International{ get; set; }
/// <summary>
/// 签名用途:
/// 0自用。
/// 1他用。
/// </summary>
[JsonProperty("UsedMethod")]
public ulong? UsedMethod{ get; set; }
/// <summary>
/// 签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
/// </summary>
[JsonProperty("ProofImage")]
public string ProofImage{ get; set; }
/// <summary>
/// 委托授权证明。选择 UsedMethod 为他用之后需要提交委托的授权证明。
/// 图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
/// 注:只有 UsedMethod 在选择为 1他用这个字段才会生效。
/// </summary>
[JsonProperty("CommissionImage")]
public string CommissionImage{ get; set; }
/// <summary>
/// 签名的申请备注。
/// </summary>
[JsonProperty("Remark")]
public string Remark{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SignName", this.SignName);
this.SetParamSimple(map, prefix + "SignType", this.SignType);
this.SetParamSimple(map, prefix + "DocumentType", this.DocumentType);
this.SetParamSimple(map, prefix + "International", this.International);
this.SetParamSimple(map, prefix + "UsedMethod", this.UsedMethod);
this.SetParamSimple(map, prefix + "ProofImage", this.ProofImage);
this.SetParamSimple(map, prefix + "CommissionImage", this.CommissionImage);
this.SetParamSimple(map, prefix + "Remark", this.Remark);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class AddSmsSignResponse : AbstractModel
{
/// <summary>
/// 添加签名响应
/// </summary>
[JsonProperty("AddSignStatus")]
public AddSignStatus AddSignStatus{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamObj(map, prefix + "AddSignStatus.", this.AddSignStatus);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class AddSmsTemplateRequest : AbstractModel
{
/// <summary>
/// 模板名称。
/// </summary>
[JsonProperty("TemplateName")]
public string TemplateName{ get; set; }
/// <summary>
/// 模板内容。
/// </summary>
[JsonProperty("TemplateContent")]
public string TemplateContent{ get; set; }
/// <summary>
/// 短信类型0表示普通短信, 1表示营销短信。
/// </summary>
[JsonProperty("SmsType")]
public ulong? SmsType{ get; set; }
/// <summary>
/// 是否国际/港澳台短信:
/// 0表示国内短信。
/// 1表示国际/港澳台短信。
/// </summary>
[JsonProperty("International")]
public ulong? International{ get; set; }
/// <summary>
/// 模板备注,例如申请原因,使用场景等。
/// </summary>
[JsonProperty("Remark")]
public string Remark{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "TemplateName", this.TemplateName);
this.SetParamSimple(map, prefix + "TemplateContent", this.TemplateContent);
this.SetParamSimple(map, prefix + "SmsType", this.SmsType);
this.SetParamSimple(map, prefix + "International", this.International);
this.SetParamSimple(map, prefix + "Remark", this.Remark);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class AddSmsTemplateResponse : AbstractModel
{
/// <summary>
/// 添加短信模板响应包体
/// </summary>
[JsonProperty("AddTemplateStatus")]
public AddTemplateStatus AddTemplateStatus{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamObj(map, prefix + "AddTemplateStatus.", this.AddTemplateStatus);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class AddTemplateStatus : AbstractModel
{
/// <summary>
/// 模板参数
/// </summary>
[JsonProperty("TemplateId")]
public string TemplateId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "TemplateId", this.TemplateId);
}
}
}

View File

@@ -0,0 +1,99 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CallbackStatusStatistics : AbstractModel
{
/// <summary>
/// 短信回执量统计。
/// </summary>
[JsonProperty("CallbackCount")]
public ulong? CallbackCount{ get; set; }
/// <summary>
/// 短信提交成功量统计。
/// </summary>
[JsonProperty("RequestSuccessCount")]
public ulong? RequestSuccessCount{ get; set; }
/// <summary>
/// 短信回执失败量统计。
/// </summary>
[JsonProperty("CallbackFailCount")]
public ulong? CallbackFailCount{ get; set; }
/// <summary>
/// 短信回执成功量统计。
/// </summary>
[JsonProperty("CallbackSuccessCount")]
public ulong? CallbackSuccessCount{ get; set; }
/// <summary>
/// 运营商内部错误统计。
/// </summary>
[JsonProperty("InternalErrorCount")]
public ulong? InternalErrorCount{ get; set; }
/// <summary>
/// 号码无效或空号统计。
/// </summary>
[JsonProperty("InvalidNumberCount")]
public ulong? InvalidNumberCount{ get; set; }
/// <summary>
/// 停机、关机等错误统计。
/// </summary>
[JsonProperty("ShutdownErrorCount")]
public ulong? ShutdownErrorCount{ get; set; }
/// <summary>
/// 号码拉入黑名单统计。
/// </summary>
[JsonProperty("BlackListCount")]
public ulong? BlackListCount{ get; set; }
/// <summary>
/// 运营商频率限制统计。
/// </summary>
[JsonProperty("FrequencyLimitCount")]
public ulong? FrequencyLimitCount{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "CallbackCount", this.CallbackCount);
this.SetParamSimple(map, prefix + "RequestSuccessCount", this.RequestSuccessCount);
this.SetParamSimple(map, prefix + "CallbackFailCount", this.CallbackFailCount);
this.SetParamSimple(map, prefix + "CallbackSuccessCount", this.CallbackSuccessCount);
this.SetParamSimple(map, prefix + "InternalErrorCount", this.InternalErrorCount);
this.SetParamSimple(map, prefix + "InvalidNumberCount", this.InvalidNumberCount);
this.SetParamSimple(map, prefix + "ShutdownErrorCount", this.ShutdownErrorCount);
this.SetParamSimple(map, prefix + "BlackListCount", this.BlackListCount);
this.SetParamSimple(map, prefix + "FrequencyLimitCount", this.FrequencyLimitCount);
}
}
}

View File

@@ -0,0 +1,74 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CallbackStatusStatisticsRequest : AbstractModel
{
/// <summary>
/// 开始时间yyyymmddhh 需要拉取的起始时间,精确到小时。
/// </summary>
[JsonProperty("StartDateTime")]
public ulong? StartDateTime{ get; set; }
/// <summary>
/// 结束时间yyyymmddhh 需要拉取的截止时间,精确到小时。
/// 注EndDataTime 必须大于 StartDateTime。
/// </summary>
[JsonProperty("EndDataTime")]
public ulong? EndDataTime{ get; set; }
/// <summary>
/// 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/sms/smslist) 添加应用后生成的实际SdkAppid示例如1400006666。
/// </summary>
[JsonProperty("SmsSdkAppid")]
public string SmsSdkAppid{ get; set; }
/// <summary>
/// 最大上限。
/// 注目前固定设置为0。
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// 偏移量。
/// 注目前固定设置为0。
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "StartDateTime", this.StartDateTime);
this.SetParamSimple(map, prefix + "EndDataTime", this.EndDataTime);
this.SetParamSimple(map, prefix + "SmsSdkAppid", this.SmsSdkAppid);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CallbackStatusStatisticsResponse : AbstractModel
{
/// <summary>
/// 回执数据统计响应包体。
/// </summary>
[JsonProperty("CallbackStatusStatistics")]
public CallbackStatusStatistics CallbackStatusStatistics{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamObj(map, prefix + "CallbackStatusStatistics.", this.CallbackStatusStatistics);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteSignStatus : AbstractModel
{
/// <summary>
/// 删除状态信息。
/// </summary>
[JsonProperty("DeleteStatus")]
public string DeleteStatus{ get; set; }
/// <summary>
/// 删除时间UNIX 时间戳(单位:秒)。
/// </summary>
[JsonProperty("DeleteTime")]
public ulong? DeleteTime{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "DeleteStatus", this.DeleteStatus);
this.SetParamSimple(map, prefix + "DeleteTime", this.DeleteTime);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteSmsSignRequest : AbstractModel
{
/// <summary>
/// 待删除的签名 ID。
/// </summary>
[JsonProperty("SignId")]
public ulong? SignId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SignId", this.SignId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteSmsSignResponse : AbstractModel
{
/// <summary>
/// 删除签名响应
/// </summary>
[JsonProperty("DeleteSignStatus")]
public DeleteSignStatus DeleteSignStatus{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamObj(map, prefix + "DeleteSignStatus.", this.DeleteSignStatus);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteSmsTemplateRequest : AbstractModel
{
/// <summary>
/// 待删除的模板 ID。
/// </summary>
[JsonProperty("TemplateId")]
public ulong? TemplateId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "TemplateId", this.TemplateId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteSmsTemplateResponse : AbstractModel
{
/// <summary>
/// 删除模板响应
/// </summary>
[JsonProperty("DeleteTemplateStatus")]
public DeleteTemplateStatus DeleteTemplateStatus{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamObj(map, prefix + "DeleteTemplateStatus.", this.DeleteTemplateStatus);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteTemplateStatus : AbstractModel
{
/// <summary>
/// 删除状态信息。
/// </summary>
[JsonProperty("DeleteStatus")]
public string DeleteStatus{ get; set; }
/// <summary>
/// 删除时间UNIX 时间戳(单位:秒)。
/// </summary>
[JsonProperty("DeleteTime")]
public ulong? DeleteTime{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "DeleteStatus", this.DeleteStatus);
this.SetParamSimple(map, prefix + "DeleteTime", this.DeleteTime);
}
}
}

View File

@@ -0,0 +1,82 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeSignListStatus : AbstractModel
{
/// <summary>
/// 签名Id
/// </summary>
[JsonProperty("SignId")]
public ulong? SignId{ get; set; }
/// <summary>
/// 是否国际/港澳台短信:
/// 0表示国内短信。
/// 1表示国际/港澳台短信。
/// </summary>
[JsonProperty("International")]
public ulong? International{ get; set; }
/// <summary>
/// 申请签名状态。其中:
/// 0表示审核通过。
/// -1表示审核未通过或审核失败。
/// </summary>
[JsonProperty("StatusCode")]
public long? StatusCode{ get; set; }
/// <summary>
/// 审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
/// </summary>
[JsonProperty("ReviewReply")]
public string ReviewReply{ get; set; }
/// <summary>
/// 签名名称。
/// </summary>
[JsonProperty("SignName")]
public string SignName{ get; set; }
/// <summary>
/// 提交审核时间UNIX 时间戳(单位:秒)。
/// </summary>
[JsonProperty("CreateTime")]
public ulong? CreateTime{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SignId", this.SignId);
this.SetParamSimple(map, prefix + "International", this.International);
this.SetParamSimple(map, prefix + "StatusCode", this.StatusCode);
this.SetParamSimple(map, prefix + "ReviewReply", this.ReviewReply);
this.SetParamSimple(map, prefix + "SignName", this.SignName);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
}
}
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeSmsSignListRequest : AbstractModel
{
/// <summary>
/// 签名 ID 数组。
/// </summary>
[JsonProperty("SignIdSet")]
public ulong?[] SignIdSet{ get; set; }
/// <summary>
/// 是否国际/港澳台短信:
/// 0表示国内短信。
/// 1表示国际/港澳台短信。
/// </summary>
[JsonProperty("International")]
public ulong? International{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "SignIdSet.", this.SignIdSet);
this.SetParamSimple(map, prefix + "International", this.International);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeSmsSignListResponse : AbstractModel
{
/// <summary>
/// 获取签名信息响应
/// </summary>
[JsonProperty("DescribeSignListStatusSet")]
public DescribeSignListStatus[] DescribeSignListStatusSet{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "DescribeSignListStatusSet.", this.DescribeSignListStatusSet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeSmsTemplateListRequest : AbstractModel
{
/// <summary>
/// 模板 ID 数组。
/// </summary>
[JsonProperty("TemplateIdSet")]
public ulong?[] TemplateIdSet{ get; set; }
/// <summary>
/// 是否国际/港澳台短信:
/// 0表示国内短信。
/// 1表示国际/港澳台短信。
/// </summary>
[JsonProperty("International")]
public ulong? International{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "TemplateIdSet.", this.TemplateIdSet);
this.SetParamSimple(map, prefix + "International", this.International);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeSmsTemplateListResponse : AbstractModel
{
/// <summary>
/// 获取短信签名信息响应
/// </summary>
[JsonProperty("DescribeTemplateStatusSet")]
public DescribeTemplateListStatus[] DescribeTemplateStatusSet{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "DescribeTemplateStatusSet.", this.DescribeTemplateStatusSet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,82 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeTemplateListStatus : AbstractModel
{
/// <summary>
/// 模板Id
/// </summary>
[JsonProperty("TemplateId")]
public ulong? TemplateId{ get; set; }
/// <summary>
/// 是否国际/港澳台短信:
/// 0表示国内短信。
/// 1表示国际/港澳台短信。
/// </summary>
[JsonProperty("International")]
public ulong? International{ get; set; }
/// <summary>
/// 申请签名状态。其中:
/// 0表示审核通过。
/// -1表示审核未通过或审核失败。
/// </summary>
[JsonProperty("StatusCode")]
public long? StatusCode{ get; set; }
/// <summary>
/// 审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
/// </summary>
[JsonProperty("ReviewReply")]
public string ReviewReply{ get; set; }
/// <summary>
/// 模板名称。
/// </summary>
[JsonProperty("TemplateName")]
public string TemplateName{ get; set; }
/// <summary>
/// 提交审核时间UNIX 时间戳(单位:秒)。
/// </summary>
[JsonProperty("CreateTime")]
public ulong? CreateTime{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "TemplateId", this.TemplateId);
this.SetParamSimple(map, prefix + "International", this.International);
this.SetParamSimple(map, prefix + "StatusCode", this.StatusCode);
this.SetParamSimple(map, prefix + "ReviewReply", this.ReviewReply);
this.SetParamSimple(map, prefix + "TemplateName", this.TemplateName);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifySignStatus : AbstractModel
{
/// <summary>
/// 签名Id
/// </summary>
[JsonProperty("SignId")]
public ulong? SignId{ get; set; }
/// <summary>
/// 签名修改申请Id
/// </summary>
[JsonProperty("SignApplyId")]
public string SignApplyId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SignId", this.SignId);
this.SetParamSimple(map, prefix + "SignApplyId", this.SignApplyId);
}
}
}

View File

@@ -0,0 +1,120 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifySmsSignRequest : AbstractModel
{
/// <summary>
/// 待修改的签名 ID。
/// </summary>
[JsonProperty("SignId")]
public ulong? SignId{ get; set; }
/// <summary>
/// 签名名称。
/// </summary>
[JsonProperty("SignName")]
public string SignName{ get; set; }
/// <summary>
/// 签名类型。其中每种类型后面标注了其可选的 DocumentType证明类型
/// 0公司0123
/// 1APP01234
/// 2网站01235
/// 3公众号或者小程序01236
/// 4商标7
/// 5政府/机关事业单位/其他机构23
/// 注:必须按照对应关系选择证明类型,否则会审核失败。
/// </summary>
[JsonProperty("SignType")]
public ulong? SignType{ get; set; }
/// <summary>
/// 证明类型:
/// 0三证合一。
/// 1企业营业执照。
/// 2组织机构代码证书。
/// 3社会信用代码证书。
/// 4应用后台管理截图(个人开发APP)。
/// 5网站备案后台截图(个人开发网站)。
/// 6小程序设置页面截图(个人认证小程序)。
/// 7商标注册书。
/// </summary>
[JsonProperty("DocumentType")]
public ulong? DocumentType{ get; set; }
/// <summary>
/// 是否国际/港澳台短信:
/// 0表示国内短信。
/// 1表示国际/港澳台短信。
/// </summary>
[JsonProperty("International")]
public ulong? International{ get; set; }
/// <summary>
/// 签名用途:
/// 0自用。
/// 1他用。
/// </summary>
[JsonProperty("UsedMethod")]
public ulong? UsedMethod{ get; set; }
/// <summary>
/// 签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
/// </summary>
[JsonProperty("ProofImage")]
public string ProofImage{ get; set; }
/// <summary>
/// 委托授权证明。选择 UsedMethod 为他用之后需要提交委托的授权证明。
/// 图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
/// 注:只有 UsedMethod 在选择为 1他用这个字段才会生效。
/// </summary>
[JsonProperty("CommissionImage")]
public string CommissionImage{ get; set; }
/// <summary>
/// 签名的申请备注。
/// </summary>
[JsonProperty("Remark")]
public string Remark{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SignId", this.SignId);
this.SetParamSimple(map, prefix + "SignName", this.SignName);
this.SetParamSimple(map, prefix + "SignType", this.SignType);
this.SetParamSimple(map, prefix + "DocumentType", this.DocumentType);
this.SetParamSimple(map, prefix + "International", this.International);
this.SetParamSimple(map, prefix + "UsedMethod", this.UsedMethod);
this.SetParamSimple(map, prefix + "ProofImage", this.ProofImage);
this.SetParamSimple(map, prefix + "CommissionImage", this.CommissionImage);
this.SetParamSimple(map, prefix + "Remark", this.Remark);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifySmsSignResponse : AbstractModel
{
/// <summary>
/// 修改签名响应
/// </summary>
[JsonProperty("ModifySignStatus")]
public ModifySignStatus ModifySignStatus{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamObj(map, prefix + "ModifySignStatus.", this.ModifySignStatus);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifySmsTemplateRequest : AbstractModel
{
/// <summary>
/// 待修改的模板的模板 ID。
/// </summary>
[JsonProperty("TemplateId")]
public ulong? TemplateId{ get; set; }
/// <summary>
/// 新的模板名称。
/// </summary>
[JsonProperty("TemplateName")]
public string TemplateName{ get; set; }
/// <summary>
/// 新的模板内容。
/// </summary>
[JsonProperty("TemplateContent")]
public string TemplateContent{ get; set; }
/// <summary>
/// 短信类型0表示普通短信, 1表示营销短信。
/// </summary>
[JsonProperty("SmsType")]
public ulong? SmsType{ get; set; }
/// <summary>
/// 是否国际/港澳台短信:
/// 0表示国内短信。
/// 1表示国际/港澳台短信。
/// </summary>
[JsonProperty("International")]
public ulong? International{ get; set; }
/// <summary>
/// 模板备注,例如申请原因,使用场景等。
/// </summary>
[JsonProperty("Remark")]
public string Remark{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "TemplateId", this.TemplateId);
this.SetParamSimple(map, prefix + "TemplateName", this.TemplateName);
this.SetParamSimple(map, prefix + "TemplateContent", this.TemplateContent);
this.SetParamSimple(map, prefix + "SmsType", this.SmsType);
this.SetParamSimple(map, prefix + "International", this.International);
this.SetParamSimple(map, prefix + "Remark", this.Remark);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifySmsTemplateResponse : AbstractModel
{
/// <summary>
/// 修改模板参数响应
/// </summary>
[JsonProperty("ModifyTemplateStatus")]
public ModifyTemplateStatus ModifyTemplateStatus{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamObj(map, prefix + "ModifyTemplateStatus.", this.ModifyTemplateStatus);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyTemplateStatus : AbstractModel
{
/// <summary>
/// 模板参数
/// </summary>
[JsonProperty("TemplateId")]
public ulong? TemplateId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "TemplateId", this.TemplateId);
}
}
}

View File

@@ -0,0 +1,85 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PullSmsReplyStatus : AbstractModel
{
/// <summary>
/// 短信码号扩展号,默认未开通,如需开通请联系 [sms helper](https://cloud.tencent.com/document/product/382/3773)。
/// </summary>
[JsonProperty("ExtendCode")]
public string ExtendCode{ get; set; }
/// <summary>
/// 国家(或地区)码。
/// </summary>
[JsonProperty("NationCode")]
public string NationCode{ get; set; }
/// <summary>
/// 手机号码,e.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
/// </summary>
[JsonProperty("PhoneNumber")]
public string PhoneNumber{ get; set; }
/// <summary>
/// 短信签名。
/// </summary>
[JsonProperty("Sign")]
public string Sign{ get; set; }
/// <summary>
/// 用户回复的内容。
/// </summary>
[JsonProperty("ReplyContent")]
public string ReplyContent{ get; set; }
/// <summary>
/// 回复时间例如2019-10-08 17:18:37
/// </summary>
[JsonProperty("ReplyTime")]
public string ReplyTime{ get; set; }
/// <summary>
/// 回复时间UNIX 时间戳(单位:秒)。
/// </summary>
[JsonProperty("ReplyUnixTime")]
public ulong? ReplyUnixTime{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "ExtendCode", this.ExtendCode);
this.SetParamSimple(map, prefix + "NationCode", this.NationCode);
this.SetParamSimple(map, prefix + "PhoneNumber", this.PhoneNumber);
this.SetParamSimple(map, prefix + "Sign", this.Sign);
this.SetParamSimple(map, prefix + "ReplyContent", this.ReplyContent);
this.SetParamSimple(map, prefix + "ReplyTime", this.ReplyTime);
this.SetParamSimple(map, prefix + "ReplyUnixTime", this.ReplyUnixTime);
}
}
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PullSmsReplyStatusByPhoneNumberRequest : AbstractModel
{
/// <summary>
/// 拉取起始时间UNIX 时间戳(时间:秒)。
/// </summary>
[JsonProperty("SendDateTime")]
public ulong? SendDateTime{ get; set; }
/// <summary>
/// 偏移量。
/// 注目前固定设置为0。
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 拉取最大条数,最多 100。
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// 下发目的手机号码,依据 e.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
/// </summary>
[JsonProperty("PhoneNumber")]
public string PhoneNumber{ get; set; }
/// <summary>
/// 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/sms/smslist) 添加应用后生成的实际SdkAppid例如1400006666。
/// </summary>
[JsonProperty("SmsSdkAppid")]
public string SmsSdkAppid{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SendDateTime", this.SendDateTime);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "PhoneNumber", this.PhoneNumber);
this.SetParamSimple(map, prefix + "SmsSdkAppid", this.SmsSdkAppid);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PullSmsReplyStatusByPhoneNumberResponse : AbstractModel
{
/// <summary>
/// 回复状态响应集合。
/// </summary>
[JsonProperty("PullSmsReplyStatusSet")]
public PullSmsReplyStatus[] PullSmsReplyStatusSet{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "PullSmsReplyStatusSet.", this.PullSmsReplyStatusSet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PullSmsReplyStatusRequest : AbstractModel
{
/// <summary>
/// 拉取最大条数最多100条。
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// 短信 SdkAppid 在 [短信控制台](https://console.cloud.tencent.com/sms/smslist) 添加应用后生成的实际 SdkAppid例如1400006666。
/// </summary>
[JsonProperty("SmsSdkAppid")]
public string SmsSdkAppid{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "SmsSdkAppid", this.SmsSdkAppid);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PullSmsReplyStatusResponse : AbstractModel
{
/// <summary>
/// 回复状态响应集合。
/// </summary>
[JsonProperty("PullSmsReplyStatusSet")]
public PullSmsReplyStatus[] PullSmsReplyStatusSet{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "PullSmsReplyStatusSet.", this.PullSmsReplyStatusSet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,92 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PullSmsSendStatus : AbstractModel
{
/// <summary>
/// 用户实际接收到短信的时间。
/// </summary>
[JsonProperty("UserReceiveTime")]
public string UserReceiveTime{ get; set; }
/// <summary>
/// 用户实际接收到短信的时间UNIX 时间戳(单位:秒)。
/// </summary>
[JsonProperty("UserReceiveUnixTime")]
public ulong? UserReceiveUnixTime{ get; set; }
/// <summary>
/// 国家(或地区)码。
/// </summary>
[JsonProperty("NationCode")]
public string NationCode{ get; set; }
/// <summary>
/// 手机号码,e.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
/// </summary>
[JsonProperty("PurePhoneNumber")]
public string PurePhoneNumber{ get; set; }
/// <summary>
/// 手机号码普通格式示例如13711112222。
/// </summary>
[JsonProperty("PhoneNumber")]
public string PhoneNumber{ get; set; }
/// <summary>
/// 本次发送标识 ID。
/// </summary>
[JsonProperty("SerialNo")]
public string SerialNo{ get; set; }
/// <summary>
/// 实际是否收到短信接收状态SUCCESS成功、FAIL失败
/// </summary>
[JsonProperty("ReportStatus")]
public string ReportStatus{ get; set; }
/// <summary>
/// 用户接收短信状态描述。
/// </summary>
[JsonProperty("Description")]
public string Description{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "UserReceiveTime", this.UserReceiveTime);
this.SetParamSimple(map, prefix + "UserReceiveUnixTime", this.UserReceiveUnixTime);
this.SetParamSimple(map, prefix + "NationCode", this.NationCode);
this.SetParamSimple(map, prefix + "PurePhoneNumber", this.PurePhoneNumber);
this.SetParamSimple(map, prefix + "PhoneNumber", this.PhoneNumber);
this.SetParamSimple(map, prefix + "SerialNo", this.SerialNo);
this.SetParamSimple(map, prefix + "ReportStatus", this.ReportStatus);
this.SetParamSimple(map, prefix + "Description", this.Description);
}
}
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PullSmsSendStatusByPhoneNumberRequest : AbstractModel
{
/// <summary>
/// 拉取起始时间UNIX 时间戳(时间:秒)。
/// </summary>
[JsonProperty("SendDateTime")]
public ulong? SendDateTime{ get; set; }
/// <summary>
/// 偏移量。
/// 注目前固定设置为0。
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 拉取最大条数,最多 100。
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// 下发目的手机号码,依据 e.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
/// </summary>
[JsonProperty("PhoneNumber")]
public string PhoneNumber{ get; set; }
/// <summary>
/// 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/sms/smslist) 添加应用后生成的实际SdkAppid例如1400006666。
/// </summary>
[JsonProperty("SmsSdkAppid")]
public string SmsSdkAppid{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SendDateTime", this.SendDateTime);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "PhoneNumber", this.PhoneNumber);
this.SetParamSimple(map, prefix + "SmsSdkAppid", this.SmsSdkAppid);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PullSmsSendStatusByPhoneNumberResponse : AbstractModel
{
/// <summary>
/// 下发状态响应集合。
/// </summary>
[JsonProperty("PullSmsSendStatusSet")]
public PullSmsSendStatus[] PullSmsSendStatusSet{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "PullSmsSendStatusSet.", this.PullSmsSendStatusSet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PullSmsSendStatusRequest : AbstractModel
{
/// <summary>
/// 拉取最大条数最多100条。
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/sms/smslist) 添加应用后生成的实际SdkAppid例如1400006666。
/// </summary>
[JsonProperty("SmsSdkAppid")]
public string SmsSdkAppid{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "SmsSdkAppid", this.SmsSdkAppid);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PullSmsSendStatusResponse : AbstractModel
{
/// <summary>
/// 下发状态响应集合。
/// </summary>
[JsonProperty("PullSmsSendStatusSet")]
public PullSmsSendStatus[] PullSmsSendStatusSet{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "PullSmsSendStatusSet.", this.PullSmsSendStatusSet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,93 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SendSmsRequest : AbstractModel
{
/// <summary>
/// 下发手机号码,采用 e.164 标准,格式为+[国家或地区码][手机号]单次请求最多支持200个手机号且要求全为境内手机号或全为境外手机号。
/// 例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
/// </summary>
[JsonProperty("PhoneNumberSet")]
public string[] PhoneNumberSet{ get; set; }
/// <summary>
/// 模板 ID必须填写已审核通过的模板 ID。模板ID可登录 [短信控制台](https://console.cloud.tencent.com/sms/smslist) 查看。
/// </summary>
[JsonProperty("TemplateID")]
public string TemplateID{ get; set; }
/// <summary>
/// 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/sms/smslist) 添加应用后生成的实际SdkAppid示例如1400006666。
/// </summary>
[JsonProperty("SmsSdkAppid")]
public string SmsSdkAppid{ get; set; }
/// <summary>
/// 短信签名内容,使用 UTF-8 编码,必须填写已审核通过的签名,签名信息可登录 [短信控制台](https://console.cloud.tencent.com/sms/smslist) 查看。注:国内短信为必填参数。
/// </summary>
[JsonProperty("Sign")]
public string Sign{ get; set; }
/// <summary>
/// 模板参数,若无模板参数,则设置为空。
/// </summary>
[JsonProperty("TemplateParamSet")]
public string[] TemplateParamSet{ get; set; }
/// <summary>
/// 短信码号扩展号,默认未开通,如需开通请联系 [sms helper](https://cloud.tencent.com/document/product/382/3773)。
/// </summary>
[JsonProperty("ExtendCode")]
public string ExtendCode{ get; set; }
/// <summary>
/// 用户的 session 内容,可以携带用户侧 ID 等上下文信息server 会原样返回。
/// </summary>
[JsonProperty("SessionContext")]
public string SessionContext{ get; set; }
/// <summary>
/// 国际/港澳台短信 senderid国内短信填空默认未开通如需开通请联系 [sms helper](https://cloud.tencent.com/document/product/382/3773)。
/// </summary>
[JsonProperty("SenderId")]
public string SenderId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "PhoneNumberSet.", this.PhoneNumberSet);
this.SetParamSimple(map, prefix + "TemplateID", this.TemplateID);
this.SetParamSimple(map, prefix + "SmsSdkAppid", this.SmsSdkAppid);
this.SetParamSimple(map, prefix + "Sign", this.Sign);
this.SetParamArraySimple(map, prefix + "TemplateParamSet.", this.TemplateParamSet);
this.SetParamSimple(map, prefix + "ExtendCode", this.ExtendCode);
this.SetParamSimple(map, prefix + "SessionContext", this.SessionContext);
this.SetParamSimple(map, prefix + "SenderId", this.SenderId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SendSmsResponse : AbstractModel
{
/// <summary>
/// 短信发送状态。
/// </summary>
[JsonProperty("SendStatusSet")]
public SendStatus[] SendStatusSet{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "SendStatusSet.", this.SendStatusSet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,78 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SendStatus : AbstractModel
{
/// <summary>
/// 发送流水号。
/// </summary>
[JsonProperty("SerialNo")]
public string SerialNo{ get; set; }
/// <summary>
/// 手机号码,e.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
/// </summary>
[JsonProperty("PhoneNumber")]
public string PhoneNumber{ get; set; }
/// <summary>
/// 计费条数,计费规则请查询 [计费策略](https://cloud.tencent.com/document/product/382/36135)。
/// </summary>
[JsonProperty("Fee")]
public ulong? Fee{ get; set; }
/// <summary>
/// 用户Session内容。
/// </summary>
[JsonProperty("SessionContext")]
public string SessionContext{ get; set; }
/// <summary>
/// 短信请求错误码,具体含义请参考错误码。
/// </summary>
[JsonProperty("Code")]
public string Code{ get; set; }
/// <summary>
/// 短信请求错误码描述。
/// </summary>
[JsonProperty("Message")]
public string Message{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SerialNo", this.SerialNo);
this.SetParamSimple(map, prefix + "PhoneNumber", this.PhoneNumber);
this.SetParamSimple(map, prefix + "Fee", this.Fee);
this.SetParamSimple(map, prefix + "SessionContext", this.SessionContext);
this.SetParamSimple(map, prefix + "Code", this.Code);
this.SetParamSimple(map, prefix + "Message", this.Message);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SendStatusStatistics : AbstractModel
{
/// <summary>
/// 短信计费条数统计例如提交成功量为100条其中有20条是长短信长度为80字被拆分成2条则计费条数为 ```80 * 1 + 20 * 2 = 120``` 条。
/// </summary>
[JsonProperty("FeeCount")]
public ulong? FeeCount{ get; set; }
/// <summary>
/// 短信提交量统计。
/// </summary>
[JsonProperty("RequestCount")]
public ulong? RequestCount{ get; set; }
/// <summary>
/// 短信提交成功量统计。
/// </summary>
[JsonProperty("RequestSuccessCount")]
public ulong? RequestSuccessCount{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "FeeCount", this.FeeCount);
this.SetParamSimple(map, prefix + "RequestCount", this.RequestCount);
this.SetParamSimple(map, prefix + "RequestSuccessCount", this.RequestSuccessCount);
}
}
}

View File

@@ -0,0 +1,74 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SendStatusStatisticsRequest : AbstractModel
{
/// <summary>
/// 拉取起始时间yyyymmddhh 需要拉取的起始时间,精确到小时。
/// </summary>
[JsonProperty("StartDateTime")]
public ulong? StartDateTime{ get; set; }
/// <summary>
/// 结束时间yyyymmddhh 需要拉取的截止时间,精确到小时
/// 注EndDataTime 必须大于 StartDateTime。
/// </summary>
[JsonProperty("EndDataTime")]
public ulong? EndDataTime{ get; set; }
/// <summary>
/// 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/sms/smslist) 添加应用后生成的实际SdkAppid示例如1400006666。
/// </summary>
[JsonProperty("SmsSdkAppid")]
public string SmsSdkAppid{ get; set; }
/// <summary>
/// 最大上限。
/// 注目前固定设置为0。
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// 偏移量。
/// 注目前固定设置为0。
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "StartDateTime", this.StartDateTime);
this.SetParamSimple(map, prefix + "EndDataTime", this.EndDataTime);
this.SetParamSimple(map, prefix + "SmsSdkAppid", this.SmsSdkAppid);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SendStatusStatisticsResponse : AbstractModel
{
/// <summary>
/// 发送数据统计响应包体。
/// </summary>
[JsonProperty("SendStatusStatistics")]
public SendStatusStatistics SendStatusStatistics{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamObj(map, prefix + "SendStatusStatistics.", this.SendStatusStatistics);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,106 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SmsPackagesStatistics : AbstractModel
{
/// <summary>
/// 套餐包创建时间标准时间例如2019-10-08 17:18:37。
/// </summary>
[JsonProperty("PackageCreateTime")]
public string PackageCreateTime{ get; set; }
/// <summary>
/// 套餐包创建时间UNIX 时间戳(单位:秒)。
/// </summary>
[JsonProperty("PackageCreateUnixTime")]
public ulong? PackageCreateUnixTime{ get; set; }
/// <summary>
/// 套餐包生效时间标准时间例如2019-10-08 17:18:37。
/// </summary>
[JsonProperty("PackageEffectiveTime")]
public string PackageEffectiveTime{ get; set; }
/// <summary>
/// 套餐包生效时间UNIX 时间戳(单位:秒)。
/// </summary>
[JsonProperty("PackageEffectiveUnixTime")]
public ulong? PackageEffectiveUnixTime{ get; set; }
/// <summary>
/// 套餐包过期时间标准时间例如2019-10-08 17:18:37。
/// </summary>
[JsonProperty("PackageExpiredTime")]
public string PackageExpiredTime{ get; set; }
/// <summary>
/// 套餐包过期时间UNIX 时间戳(单位:秒)。
/// </summary>
[JsonProperty("PackageExpiredUnixTime")]
public ulong? PackageExpiredUnixTime{ get; set; }
/// <summary>
/// 套餐包条数。
/// </summary>
[JsonProperty("AmountOfPackage")]
public ulong? AmountOfPackage{ get; set; }
/// <summary>
/// 0表示赠送套餐包1表示购买套餐包。
/// </summary>
[JsonProperty("TypeOfPackage")]
public ulong? TypeOfPackage{ get; set; }
/// <summary>
/// 套餐包 ID。
/// </summary>
[JsonProperty("PackageId")]
public ulong? PackageId{ get; set; }
/// <summary>
/// 当前使用量。
/// </summary>
[JsonProperty("CurrentUsage")]
public ulong? CurrentUsage{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "PackageCreateTime", this.PackageCreateTime);
this.SetParamSimple(map, prefix + "PackageCreateUnixTime", this.PackageCreateUnixTime);
this.SetParamSimple(map, prefix + "PackageEffectiveTime", this.PackageEffectiveTime);
this.SetParamSimple(map, prefix + "PackageEffectiveUnixTime", this.PackageEffectiveUnixTime);
this.SetParamSimple(map, prefix + "PackageExpiredTime", this.PackageExpiredTime);
this.SetParamSimple(map, prefix + "PackageExpiredUnixTime", this.PackageExpiredUnixTime);
this.SetParamSimple(map, prefix + "AmountOfPackage", this.AmountOfPackage);
this.SetParamSimple(map, prefix + "TypeOfPackage", this.TypeOfPackage);
this.SetParamSimple(map, prefix + "PackageId", this.PackageId);
this.SetParamSimple(map, prefix + "CurrentUsage", this.CurrentUsage);
}
}
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SmsPackagesStatisticsRequest : AbstractModel
{
/// <summary>
/// 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/sms/smslist) 添加应用后生成的实际SdkAppid示例如1400006666。
/// </summary>
[JsonProperty("SmsSdkAppid")]
public string SmsSdkAppid{ get; set; }
/// <summary>
/// 最大上限(需要拉取的套餐包个数)。
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// 偏移量。
/// 注目前固定设置为0。
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SmsSdkAppid", this.SmsSdkAppid);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.V20190711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SmsPackagesStatisticsResponse : AbstractModel
{
/// <summary>
/// 发送数据统计响应包体。
/// </summary>
[JsonProperty("SmsPackagesStatisticsSet")]
public SmsPackagesStatistics[] SmsPackagesStatisticsSet{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "SmsPackagesStatisticsSet.", this.SmsPackagesStatisticsSet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,718 @@
/*
* Copyright (c) 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.V20190711
{
using Newtonsoft.Json;
using System.Threading.Tasks;
using TencentCloud.Common;
using TencentCloud.Common.Profile;
using TencentCloud.Sms.V20190711.Models;
public class SmsClient : AbstractClient{
private const string endpoint = "sms.tencentcloudapi.com";
private const string version = "2019-07-11";
/// <summary>
/// Client constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
public SmsClient(Credential credential, string region)
: this(credential, region, new ClientProfile())
{
}
/// <summary>
/// Client Constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
/// <param name="profile">Client profiles.</param>
public SmsClient(Credential credential, string region, ClientProfile profile)
: base(endpoint, version, credential, region, profile)
{
}
/// <summary>
/// 添加短信签名,申请之前请先认证参阅 [腾讯云短信签名审核标准](https://cloud.tencent.com/document/product/382/39022)。
/// >⚠️注意:个人认证用户不支持使用 API 申请短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录控制台申请短信签名,具体操作请参阅 [创建短信签名](https://cloud.tencent.com/document/product/382/36136#Sign)。
/// </summary>
/// <param name="req"><see cref="AddSmsSignRequest"/></param>
/// <returns><see cref="AddSmsSignResponse"/></returns>
public async Task<AddSmsSignResponse> AddSmsSign(AddSmsSignRequest req)
{
JsonResponseModel<AddSmsSignResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "AddSmsSign");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<AddSmsSignResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 添加短信签名,申请之前请先认证参阅 [腾讯云短信签名审核标准](https://cloud.tencent.com/document/product/382/39022)。
/// >⚠️注意:个人认证用户不支持使用 API 申请短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录控制台申请短信签名,具体操作请参阅 [创建短信签名](https://cloud.tencent.com/document/product/382/36136#Sign)。
/// </summary>
/// <param name="req"><see cref="AddSmsSignRequest"/></param>
/// <returns><see cref="AddSmsSignResponse"/></returns>
public AddSmsSignResponse AddSmsSignSync(AddSmsSignRequest req)
{
JsonResponseModel<AddSmsSignResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "AddSmsSign");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<AddSmsSignResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 添加短信模版,申请之前请先认证参阅 [腾讯云短信正文模版审核标准](https://cloud.tencent.com/document/product/382/39023)。
/// >⚠️注意:个人认证用户不支持使用 API 申请短信正文模版,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录控制台申请短信正文模版,具体操作请参阅 [创建短信正文模版](https://cloud.tencent.com/document/product/382/36136#Template)。
/// </summary>
/// <param name="req"><see cref="AddSmsTemplateRequest"/></param>
/// <returns><see cref="AddSmsTemplateResponse"/></returns>
public async Task<AddSmsTemplateResponse> AddSmsTemplate(AddSmsTemplateRequest req)
{
JsonResponseModel<AddSmsTemplateResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "AddSmsTemplate");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<AddSmsTemplateResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 添加短信模版,申请之前请先认证参阅 [腾讯云短信正文模版审核标准](https://cloud.tencent.com/document/product/382/39023)。
/// >⚠️注意:个人认证用户不支持使用 API 申请短信正文模版,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录控制台申请短信正文模版,具体操作请参阅 [创建短信正文模版](https://cloud.tencent.com/document/product/382/36136#Template)。
/// </summary>
/// <param name="req"><see cref="AddSmsTemplateRequest"/></param>
/// <returns><see cref="AddSmsTemplateResponse"/></returns>
public AddSmsTemplateResponse AddSmsTemplateSync(AddSmsTemplateRequest req)
{
JsonResponseModel<AddSmsTemplateResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "AddSmsTemplate");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<AddSmsTemplateResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 统计用户回执的数据。
/// </summary>
/// <param name="req"><see cref="CallbackStatusStatisticsRequest"/></param>
/// <returns><see cref="CallbackStatusStatisticsResponse"/></returns>
public async Task<CallbackStatusStatisticsResponse> CallbackStatusStatistics(CallbackStatusStatisticsRequest req)
{
JsonResponseModel<CallbackStatusStatisticsResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "CallbackStatusStatistics");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CallbackStatusStatisticsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 统计用户回执的数据。
/// </summary>
/// <param name="req"><see cref="CallbackStatusStatisticsRequest"/></param>
/// <returns><see cref="CallbackStatusStatisticsResponse"/></returns>
public CallbackStatusStatisticsResponse CallbackStatusStatisticsSync(CallbackStatusStatisticsRequest req)
{
JsonResponseModel<CallbackStatusStatisticsResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "CallbackStatusStatistics");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CallbackStatusStatisticsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// >⚠️注意:个人认证用户不支持使用 API 删除短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),请登录控制台删除短信签名,具体操作请参阅 [短信签名操作](https://cloud.tencent.com/document/product/382/36136#Sign) 中查看删除短信签名须知。
/// </summary>
/// <param name="req"><see cref="DeleteSmsSignRequest"/></param>
/// <returns><see cref="DeleteSmsSignResponse"/></returns>
public async Task<DeleteSmsSignResponse> DeleteSmsSign(DeleteSmsSignRequest req)
{
JsonResponseModel<DeleteSmsSignResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DeleteSmsSign");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeleteSmsSignResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// >⚠️注意:个人认证用户不支持使用 API 删除短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),请登录控制台删除短信签名,具体操作请参阅 [短信签名操作](https://cloud.tencent.com/document/product/382/36136#Sign) 中查看删除短信签名须知。
/// </summary>
/// <param name="req"><see cref="DeleteSmsSignRequest"/></param>
/// <returns><see cref="DeleteSmsSignResponse"/></returns>
public DeleteSmsSignResponse DeleteSmsSignSync(DeleteSmsSignRequest req)
{
JsonResponseModel<DeleteSmsSignResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DeleteSmsSign");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeleteSmsSignResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// >⚠️注意:个人认证用户不支持使用 API 删除短信正文模版,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),请登录控制台删除短信正文模版,具体操作请参阅 [短信正文模版操作](https://cloud.tencent.com/document/product/382/36136#Template) 中查看删除短信正文模版须知。
/// </summary>
/// <param name="req"><see cref="DeleteSmsTemplateRequest"/></param>
/// <returns><see cref="DeleteSmsTemplateResponse"/></returns>
public async Task<DeleteSmsTemplateResponse> DeleteSmsTemplate(DeleteSmsTemplateRequest req)
{
JsonResponseModel<DeleteSmsTemplateResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DeleteSmsTemplate");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeleteSmsTemplateResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// >⚠️注意:个人认证用户不支持使用 API 删除短信正文模版,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),请登录控制台删除短信正文模版,具体操作请参阅 [短信正文模版操作](https://cloud.tencent.com/document/product/382/36136#Template) 中查看删除短信正文模版须知。
/// </summary>
/// <param name="req"><see cref="DeleteSmsTemplateRequest"/></param>
/// <returns><see cref="DeleteSmsTemplateResponse"/></returns>
public DeleteSmsTemplateResponse DeleteSmsTemplateSync(DeleteSmsTemplateRequest req)
{
JsonResponseModel<DeleteSmsTemplateResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DeleteSmsTemplate");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeleteSmsTemplateResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// >⚠️注意:个人认证用户不支持使用 API 查询短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629)。
/// </summary>
/// <param name="req"><see cref="DescribeSmsSignListRequest"/></param>
/// <returns><see cref="DescribeSmsSignListResponse"/></returns>
public async Task<DescribeSmsSignListResponse> DescribeSmsSignList(DescribeSmsSignListRequest req)
{
JsonResponseModel<DescribeSmsSignListResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeSmsSignList");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeSmsSignListResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// >⚠️注意:个人认证用户不支持使用 API 查询短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629)。
/// </summary>
/// <param name="req"><see cref="DescribeSmsSignListRequest"/></param>
/// <returns><see cref="DescribeSmsSignListResponse"/></returns>
public DescribeSmsSignListResponse DescribeSmsSignListSync(DescribeSmsSignListRequest req)
{
JsonResponseModel<DescribeSmsSignListResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeSmsSignList");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeSmsSignListResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// >⚠️注意:个人认证用户不支持使用 API 查询短信正文模版,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629)。
/// </summary>
/// <param name="req"><see cref="DescribeSmsTemplateListRequest"/></param>
/// <returns><see cref="DescribeSmsTemplateListResponse"/></returns>
public async Task<DescribeSmsTemplateListResponse> DescribeSmsTemplateList(DescribeSmsTemplateListRequest req)
{
JsonResponseModel<DescribeSmsTemplateListResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeSmsTemplateList");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeSmsTemplateListResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// >⚠️注意:个人认证用户不支持使用 API 查询短信正文模版,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629)。
/// </summary>
/// <param name="req"><see cref="DescribeSmsTemplateListRequest"/></param>
/// <returns><see cref="DescribeSmsTemplateListResponse"/></returns>
public DescribeSmsTemplateListResponse DescribeSmsTemplateListSync(DescribeSmsTemplateListRequest req)
{
JsonResponseModel<DescribeSmsTemplateListResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeSmsTemplateList");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeSmsTemplateListResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 修改短信签名,修改之前请先认证参阅 [腾讯云短信签名审核标准](https://cloud.tencent.com/document/product/382/39022)。
/// >- ⚠️注意:个人认证用户不支持使用 API 修改短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录控制台修改短信签名。
/// >- 修改短信签名,仅当签名为待审核或已拒绝状态时,才能进行修改,已审核通过的签名不支持修改。
/// </summary>
/// <param name="req"><see cref="ModifySmsSignRequest"/></param>
/// <returns><see cref="ModifySmsSignResponse"/></returns>
public async Task<ModifySmsSignResponse> ModifySmsSign(ModifySmsSignRequest req)
{
JsonResponseModel<ModifySmsSignResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "ModifySmsSign");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ModifySmsSignResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 修改短信签名,修改之前请先认证参阅 [腾讯云短信签名审核标准](https://cloud.tencent.com/document/product/382/39022)。
/// >- ⚠️注意:个人认证用户不支持使用 API 修改短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录控制台修改短信签名。
/// >- 修改短信签名,仅当签名为待审核或已拒绝状态时,才能进行修改,已审核通过的签名不支持修改。
/// </summary>
/// <param name="req"><see cref="ModifySmsSignRequest"/></param>
/// <returns><see cref="ModifySmsSignResponse"/></returns>
public ModifySmsSignResponse ModifySmsSignSync(ModifySmsSignRequest req)
{
JsonResponseModel<ModifySmsSignResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "ModifySmsSign");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ModifySmsSignResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 修改短信正文模版,修改之前请先认真参阅 [腾讯云短信正文模版审核标准](https://cloud.tencent.com/document/product/382/39023)。
/// >- ⚠️注意:个人认证用户不支持使用 API 修改短信正文模版,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录控制台修改短信正文模版。
/// >- 修改短信签名,仅当正文模版为待审核或已拒绝状态时,才能进行修改,已审核通过的正文模版不支持修改。
/// </summary>
/// <param name="req"><see cref="ModifySmsTemplateRequest"/></param>
/// <returns><see cref="ModifySmsTemplateResponse"/></returns>
public async Task<ModifySmsTemplateResponse> ModifySmsTemplate(ModifySmsTemplateRequest req)
{
JsonResponseModel<ModifySmsTemplateResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "ModifySmsTemplate");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ModifySmsTemplateResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 修改短信正文模版,修改之前请先认真参阅 [腾讯云短信正文模版审核标准](https://cloud.tencent.com/document/product/382/39023)。
/// >- ⚠️注意:个人认证用户不支持使用 API 修改短信正文模版,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录控制台修改短信正文模版。
/// >- 修改短信签名,仅当正文模版为待审核或已拒绝状态时,才能进行修改,已审核通过的正文模版不支持修改。
/// </summary>
/// <param name="req"><see cref="ModifySmsTemplateRequest"/></param>
/// <returns><see cref="ModifySmsTemplateResponse"/></returns>
public ModifySmsTemplateResponse ModifySmsTemplateSync(ModifySmsTemplateRequest req)
{
JsonResponseModel<ModifySmsTemplateResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "ModifySmsTemplate");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ModifySmsTemplateResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 拉取短信回复状态。
/// 目前也支持 [配置回复回调](https://cloud.tencent.com/document/product/382/42907) 的方式来获取上行回复。
/// </summary>
/// <param name="req"><see cref="PullSmsReplyStatusRequest"/></param>
/// <returns><see cref="PullSmsReplyStatusResponse"/></returns>
public async Task<PullSmsReplyStatusResponse> PullSmsReplyStatus(PullSmsReplyStatusRequest req)
{
JsonResponseModel<PullSmsReplyStatusResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "PullSmsReplyStatus");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<PullSmsReplyStatusResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 拉取短信回复状态。
/// 目前也支持 [配置回复回调](https://cloud.tencent.com/document/product/382/42907) 的方式来获取上行回复。
/// </summary>
/// <param name="req"><see cref="PullSmsReplyStatusRequest"/></param>
/// <returns><see cref="PullSmsReplyStatusResponse"/></returns>
public PullSmsReplyStatusResponse PullSmsReplyStatusSync(PullSmsReplyStatusRequest req)
{
JsonResponseModel<PullSmsReplyStatusResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "PullSmsReplyStatus");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<PullSmsReplyStatusResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 拉取单个号码短信回复状态。
/// 目前也支持 [配置回复回调](https://cloud.tencent.com/document/product/382/42907) 的方式来获取上行回复。
/// </summary>
/// <param name="req"><see cref="PullSmsReplyStatusByPhoneNumberRequest"/></param>
/// <returns><see cref="PullSmsReplyStatusByPhoneNumberResponse"/></returns>
public async Task<PullSmsReplyStatusByPhoneNumberResponse> PullSmsReplyStatusByPhoneNumber(PullSmsReplyStatusByPhoneNumberRequest req)
{
JsonResponseModel<PullSmsReplyStatusByPhoneNumberResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "PullSmsReplyStatusByPhoneNumber");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<PullSmsReplyStatusByPhoneNumberResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 拉取单个号码短信回复状态。
/// 目前也支持 [配置回复回调](https://cloud.tencent.com/document/product/382/42907) 的方式来获取上行回复。
/// </summary>
/// <param name="req"><see cref="PullSmsReplyStatusByPhoneNumberRequest"/></param>
/// <returns><see cref="PullSmsReplyStatusByPhoneNumberResponse"/></returns>
public PullSmsReplyStatusByPhoneNumberResponse PullSmsReplyStatusByPhoneNumberSync(PullSmsReplyStatusByPhoneNumberRequest req)
{
JsonResponseModel<PullSmsReplyStatusByPhoneNumberResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "PullSmsReplyStatusByPhoneNumber");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<PullSmsReplyStatusByPhoneNumberResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 拉取短信下发状态。
/// >- 目前也支持 [配置回调](https://cloud.tencent.com/document/product/382/37809#.E8.AE.BE.E7.BD.AE.E4.BA.8B.E4.BB.B6.E5.9B.9E.E8.B0.83.E9.85.8D.E7.BD.AE) 的方式来获取下发状态。
/// </summary>
/// <param name="req"><see cref="PullSmsSendStatusRequest"/></param>
/// <returns><see cref="PullSmsSendStatusResponse"/></returns>
public async Task<PullSmsSendStatusResponse> PullSmsSendStatus(PullSmsSendStatusRequest req)
{
JsonResponseModel<PullSmsSendStatusResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "PullSmsSendStatus");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<PullSmsSendStatusResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 拉取短信下发状态。
/// >- 目前也支持 [配置回调](https://cloud.tencent.com/document/product/382/37809#.E8.AE.BE.E7.BD.AE.E4.BA.8B.E4.BB.B6.E5.9B.9E.E8.B0.83.E9.85.8D.E7.BD.AE) 的方式来获取下发状态。
/// </summary>
/// <param name="req"><see cref="PullSmsSendStatusRequest"/></param>
/// <returns><see cref="PullSmsSendStatusResponse"/></returns>
public PullSmsSendStatusResponse PullSmsSendStatusSync(PullSmsSendStatusRequest req)
{
JsonResponseModel<PullSmsSendStatusResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "PullSmsSendStatus");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<PullSmsSendStatusResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 拉取单个号码短信下发状态。
/// >- 目前也支持 [配置回调](https://cloud.tencent.com/document/product/382/37809#.E8.AE.BE.E7.BD.AE.E4.BA.8B.E4.BB.B6.E5.9B.9E.E8.B0.83.E9.85.8D.E7.BD.AE) 的方式来获取下发状态。
/// </summary>
/// <param name="req"><see cref="PullSmsSendStatusByPhoneNumberRequest"/></param>
/// <returns><see cref="PullSmsSendStatusByPhoneNumberResponse"/></returns>
public async Task<PullSmsSendStatusByPhoneNumberResponse> PullSmsSendStatusByPhoneNumber(PullSmsSendStatusByPhoneNumberRequest req)
{
JsonResponseModel<PullSmsSendStatusByPhoneNumberResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "PullSmsSendStatusByPhoneNumber");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<PullSmsSendStatusByPhoneNumberResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 拉取单个号码短信下发状态。
/// >- 目前也支持 [配置回调](https://cloud.tencent.com/document/product/382/37809#.E8.AE.BE.E7.BD.AE.E4.BA.8B.E4.BB.B6.E5.9B.9E.E8.B0.83.E9.85.8D.E7.BD.AE) 的方式来获取下发状态。
/// </summary>
/// <param name="req"><see cref="PullSmsSendStatusByPhoneNumberRequest"/></param>
/// <returns><see cref="PullSmsSendStatusByPhoneNumberResponse"/></returns>
public PullSmsSendStatusByPhoneNumberResponse PullSmsSendStatusByPhoneNumberSync(PullSmsSendStatusByPhoneNumberRequest req)
{
JsonResponseModel<PullSmsSendStatusByPhoneNumberResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "PullSmsSendStatusByPhoneNumber");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<PullSmsSendStatusByPhoneNumberResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 短信发送接口,用户给用户发短信验证码、通知类短信或营销短信。
///
/// </summary>
/// <param name="req"><see cref="SendSmsRequest"/></param>
/// <returns><see cref="SendSmsResponse"/></returns>
public async Task<SendSmsResponse> SendSms(SendSmsRequest req)
{
JsonResponseModel<SendSmsResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "SendSms");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<SendSmsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 短信发送接口,用户给用户发短信验证码、通知类短信或营销短信。
///
/// </summary>
/// <param name="req"><see cref="SendSmsRequest"/></param>
/// <returns><see cref="SendSmsResponse"/></returns>
public SendSmsResponse SendSmsSync(SendSmsRequest req)
{
JsonResponseModel<SendSmsResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "SendSms");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<SendSmsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 统计用户发送短信的数据。
/// </summary>
/// <param name="req"><see cref="SendStatusStatisticsRequest"/></param>
/// <returns><see cref="SendStatusStatisticsResponse"/></returns>
public async Task<SendStatusStatisticsResponse> SendStatusStatistics(SendStatusStatisticsRequest req)
{
JsonResponseModel<SendStatusStatisticsResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "SendStatusStatistics");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<SendStatusStatisticsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 统计用户发送短信的数据。
/// </summary>
/// <param name="req"><see cref="SendStatusStatisticsRequest"/></param>
/// <returns><see cref="SendStatusStatisticsResponse"/></returns>
public SendStatusStatisticsResponse SendStatusStatisticsSync(SendStatusStatisticsRequest req)
{
JsonResponseModel<SendStatusStatisticsResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "SendStatusStatistics");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<SendStatusStatisticsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 用户套餐包信息统计。
/// </summary>
/// <param name="req"><see cref="SmsPackagesStatisticsRequest"/></param>
/// <returns><see cref="SmsPackagesStatisticsResponse"/></returns>
public async Task<SmsPackagesStatisticsResponse> SmsPackagesStatistics(SmsPackagesStatisticsRequest req)
{
JsonResponseModel<SmsPackagesStatisticsResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "SmsPackagesStatistics");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<SmsPackagesStatisticsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 用户套餐包信息统计。
/// </summary>
/// <param name="req"><see cref="SmsPackagesStatisticsRequest"/></param>
/// <returns><see cref="SmsPackagesStatisticsResponse"/></returns>
public SmsPackagesStatisticsResponse SmsPackagesStatisticsSync(SmsPackagesStatisticsRequest req)
{
JsonResponseModel<SmsPackagesStatisticsResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "SmsPackagesStatistics");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<SmsPackagesStatisticsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
}
}