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

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,654 @@
/*
* 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.Gme.V20180711
{
using Newtonsoft.Json;
using System.Threading.Tasks;
using TencentCloud.Common;
using TencentCloud.Common.Profile;
using TencentCloud.Gme.V20180711.Models;
public class GmeClient : AbstractClient{
private const string endpoint = "gme.tencentcloudapi.com";
private const string version = "2018-07-11";
/// <summary>
/// Client constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
public GmeClient(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 GmeClient(Credential credential, string region, ClientProfile profile)
: base(endpoint, version, credential, region, profile)
{
}
/// <summary>
/// 本接口(CreateApp)用于创建一个GME应用。
/// </summary>
/// <param name="req"><see cref="CreateAppRequest"/></param>
/// <returns><see cref="CreateAppResponse"/></returns>
public async Task<CreateAppResponse> CreateApp(CreateAppRequest req)
{
JsonResponseModel<CreateAppResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "CreateApp");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CreateAppResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 本接口(CreateApp)用于创建一个GME应用。
/// </summary>
/// <param name="req"><see cref="CreateAppRequest"/></param>
/// <returns><see cref="CreateAppResponse"/></returns>
public CreateAppResponse CreateAppSync(CreateAppRequest req)
{
JsonResponseModel<CreateAppResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "CreateApp");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CreateAppResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 本接口(DescribeAppStatistics)用于获取某个GME应用的用量数据。包括实时语音语音消息及转文本语音分析等。最长查询周期为最近30天。
/// </summary>
/// <param name="req"><see cref="DescribeAppStatisticsRequest"/></param>
/// <returns><see cref="DescribeAppStatisticsResponse"/></returns>
public async Task<DescribeAppStatisticsResponse> DescribeAppStatistics(DescribeAppStatisticsRequest req)
{
JsonResponseModel<DescribeAppStatisticsResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeAppStatistics");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeAppStatisticsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 本接口(DescribeAppStatistics)用于获取某个GME应用的用量数据。包括实时语音语音消息及转文本语音分析等。最长查询周期为最近30天。
/// </summary>
/// <param name="req"><see cref="DescribeAppStatisticsRequest"/></param>
/// <returns><see cref="DescribeAppStatisticsResponse"/></returns>
public DescribeAppStatisticsResponse DescribeAppStatisticsSync(DescribeAppStatisticsRequest req)
{
JsonResponseModel<DescribeAppStatisticsResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeAppStatistics");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeAppStatisticsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 根据应用ID和文件ID查询识别结果
/// </summary>
/// <param name="req"><see cref="DescribeFilterResultRequest"/></param>
/// <returns><see cref="DescribeFilterResultResponse"/></returns>
public async Task<DescribeFilterResultResponse> DescribeFilterResult(DescribeFilterResultRequest req)
{
JsonResponseModel<DescribeFilterResultResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeFilterResult");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeFilterResultResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 根据应用ID和文件ID查询识别结果
/// </summary>
/// <param name="req"><see cref="DescribeFilterResultRequest"/></param>
/// <returns><see cref="DescribeFilterResultResponse"/></returns>
public DescribeFilterResultResponse DescribeFilterResultSync(DescribeFilterResultRequest req)
{
JsonResponseModel<DescribeFilterResultResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeFilterResult");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeFilterResultResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 根据日期查询识别结果列表
/// </summary>
/// <param name="req"><see cref="DescribeFilterResultListRequest"/></param>
/// <returns><see cref="DescribeFilterResultListResponse"/></returns>
public async Task<DescribeFilterResultListResponse> DescribeFilterResultList(DescribeFilterResultListRequest req)
{
JsonResponseModel<DescribeFilterResultListResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeFilterResultList");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeFilterResultListResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 根据日期查询识别结果列表
/// </summary>
/// <param name="req"><see cref="DescribeFilterResultListRequest"/></param>
/// <returns><see cref="DescribeFilterResultListResponse"/></returns>
public DescribeFilterResultListResponse DescribeFilterResultListSync(DescribeFilterResultListRequest req)
{
JsonResponseModel<DescribeFilterResultListResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeFilterResultList");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeFilterResultListResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 本接口(DescribeScanResultList)用于查询语音检测结果查询任务列表最多支持100个。
/// <p style="color:red">如果在提交语音检测任务时未设置 Callback 字段,则需要通过本接口获取检测结果</p>
/// </summary>
/// <param name="req"><see cref="DescribeScanResultListRequest"/></param>
/// <returns><see cref="DescribeScanResultListResponse"/></returns>
public async Task<DescribeScanResultListResponse> DescribeScanResultList(DescribeScanResultListRequest req)
{
JsonResponseModel<DescribeScanResultListResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeScanResultList");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeScanResultListResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 本接口(DescribeScanResultList)用于查询语音检测结果查询任务列表最多支持100个。
/// <p style="color:red">如果在提交语音检测任务时未设置 Callback 字段,则需要通过本接口获取检测结果</p>
/// </summary>
/// <param name="req"><see cref="DescribeScanResultListRequest"/></param>
/// <returns><see cref="DescribeScanResultListResponse"/></returns>
public DescribeScanResultListResponse DescribeScanResultListSync(DescribeScanResultListRequest req)
{
JsonResponseModel<DescribeScanResultListResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeScanResultList");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeScanResultListResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 本接口(ModifyAppStatus)用于修改应用总开关状态。
/// </summary>
/// <param name="req"><see cref="ModifyAppStatusRequest"/></param>
/// <returns><see cref="ModifyAppStatusResponse"/></returns>
public async Task<ModifyAppStatusResponse> ModifyAppStatus(ModifyAppStatusRequest req)
{
JsonResponseModel<ModifyAppStatusResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "ModifyAppStatus");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ModifyAppStatusResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 本接口(ModifyAppStatus)用于修改应用总开关状态。
/// </summary>
/// <param name="req"><see cref="ModifyAppStatusRequest"/></param>
/// <returns><see cref="ModifyAppStatusResponse"/></returns>
public ModifyAppStatusResponse ModifyAppStatusSync(ModifyAppStatusRequest req)
{
JsonResponseModel<ModifyAppStatusResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "ModifyAppStatus");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ModifyAppStatusResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 本接口(ScanVoice)用于提交语音检测任务检测任务列表最多支持100个。使用前请您登录[控制台 - 服务配置](https://console.cloud.tencent.com/gamegme/conf)开启语音分析服务。
/// </br></br>
///
/// <h4><b>功能试用说明:</b></h4>
/// <li>打开前往<a href="https://console.cloud.tencent.com/gamegme/tryout">控制台 - 产品试用</a>免费试用语音分析服务。</li>
/// </br>
///
/// <h4><b>接口功能说明:</b></h4>
/// <li>支持对语音流或语音文件进行检测,判断其中是否包含违规内容。</li>
/// <li>支持设置回调地址 Callback 获取检测结果,同时支持通过接口(查询语音检测结果)主动轮询获取检测结果。</li>
/// <li>支持场景输入,包括:谩骂、色情、涉政等场景</li>
/// <li>支持批量提交检测任务。检测任务列表最多支持100个。</li>
/// </br>
/// <h4><b>音频文件限制说明:</b></h4>
/// <li>音频文件大小限制100 M</li>
/// <li>音频文件时长限制30分钟</li>
/// <li>音频文件格式支持的类型:.wav、.m4a、.amr、.mp3、.aac、.wma、.ogg</li>
/// </br>
/// <h4><b>语音流限制说明:</b></h4>
/// <li>语音流格式支持的类型:.m3u8、.flv</li>
/// <li>语音流支持的传输协议RTMP、HTTP、HTTPS</li>
/// <li>语音流时长限制4小时</li>
/// <li>支持音视频流分离并对音频流进行分析</li>
/// </br>
/// <h4 id="Label_Value"><b>Scenes 与 Label 参数说明:</b></h4>
/// <p>提交语音检测任务时,需要指定 Scenes 场景参数,<font color="red">目前要求您设置 Scenes 参数值为:["default"]</font>;而在检测结果中,则包含请求时指定的场景,以及对应类型的检测结果。</p>
/// <table>
/// <thread>
/// <tr>
/// <th>场景</th>
/// <th>描述</th>
/// <th>Label</th>
/// </tr>
/// </thread>
/// <tbody>
/// <tr>
/// <td>语音检测</td>
/// <td>语音检测的检测类型</td>
/// <td>
/// <p>normal:正常文本</p>
/// <p>porn:色情</p>
/// <p>politics:涉政</p>
/// <p>abuse:谩骂</p>
/// <p>ad :广告</p>
/// <p>terrorism:暴恐</p>
/// <p>contraband :违禁</p>
/// <p>customized:自定义词库。目前白名单开放,如有需要请<a href="https://cloud.tencent.com/apply/p/8809fjcik56">联系我们</a>。</p>
/// </td>
/// </tr>
/// </tbody>
/// </table>
/// </br>
/// <h4 id="Callback_Declare"><b>回调相关说明:</b></h4>
/// <li>如果在请求参数中指定了回调地址参数 Callback即一个 HTTP(S) 协议接口的 URL则需要支持 POST 方法,传输数据编码采用 UTF-8。</li>
/// <li>在推送回调数据后,接收到的 HTTP 状态码为 200 时,表示推送成功。</li>
/// <li>HTTP 头参数说明:</li>
/// <table>
/// <thread>
/// <tr>
/// <th>名称</th>
/// <th>类型</th>
/// <th>是否必需</th>
/// <th>描述</th>
/// </tr>
/// </thread>
/// <tbody>
/// <tr>
/// <td>Signatue</td>
/// <td>string</td>
/// <td>是</td>
/// <td>签名,具体见<a href="#Callback_Signatue">签名生成说明</a></td>
/// </tr>
/// </tbody>
/// </table>
/// <ul id="Callback_Signatue">
/// <li>签名生成说明:</li>
/// <ul>
/// <li>使用 HMAC-SH1 算法, 最终结果做 BASE64 编码;</li>
/// <li>签名原文串为 POST+body 的整个json内容(长度以 Content-Length 为准);</li>
/// <li>签名key为应用的 SecretKey可以通过控制台查看。</li>
/// </ul>
/// </ul>
///
/// <li>回调示例如下<font color="red">(详细字段说明见结构:
/// <a href="https://cloud.tencent.com/document/api/607/35375#DescribeScanResult" target="_blank">DescribeScanResult</a></font></li>
/// <pre><code>{
/// "Code": 0,
/// "DataId": "1400000000_test_data_id",
/// "ScanFinishTime": 1566720906,
/// "HitFlag": true,
/// "Live": false,
/// "Msg": "",
/// "ScanPiece": [{
/// "DumpUrl": "",
/// "HitFlag": true,
/// "MainType": "abuse",
/// "RoomId": "123",
/// "OpenId": "xxx",
/// "Info":"",
/// "Offset": 0,
/// "Duration": 3400,
/// "PieceStartTime":1574684231,
/// "ScanDetail": [{
/// "EndTime": 1110,
/// "KeyWord": "xxx",
/// "Label": "abuse",
/// "Rate": "90.00",
/// "StartTime": 1110
/// }, {
/// "EndTime": 1380,
/// "KeyWord": "xxx",
/// "Label": "abuse",
/// "Rate": "90.00",
/// "StartTime": 930
/// }, {
/// "EndTime": 1560,
/// "KeyWord": "xxx",
/// "Label": "abuse",
/// "Rate": "90.00",
/// "StartTime": 930
/// }, {
/// "EndTime": 2820,
/// "KeyWord": "xxx",
/// "Label": "abuse",
/// "Rate": "90.00",
/// "StartTime": 2490
/// }]
/// }],
/// "ScanStartTime": 1566720905,
/// "Scenes": [
/// "default"
/// ],
/// "Status": "Success",
/// "TaskId": "xxx",
/// "Url": "https://xxx/xxx.m4a"
/// }
/// </code></pre>
/// </summary>
/// <param name="req"><see cref="ScanVoiceRequest"/></param>
/// <returns><see cref="ScanVoiceResponse"/></returns>
public async Task<ScanVoiceResponse> ScanVoice(ScanVoiceRequest req)
{
JsonResponseModel<ScanVoiceResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "ScanVoice");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ScanVoiceResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 本接口(ScanVoice)用于提交语音检测任务检测任务列表最多支持100个。使用前请您登录[控制台 - 服务配置](https://console.cloud.tencent.com/gamegme/conf)开启语音分析服务。
/// </br></br>
///
/// <h4><b>功能试用说明:</b></h4>
/// <li>打开前往<a href="https://console.cloud.tencent.com/gamegme/tryout">控制台 - 产品试用</a>免费试用语音分析服务。</li>
/// </br>
///
/// <h4><b>接口功能说明:</b></h4>
/// <li>支持对语音流或语音文件进行检测,判断其中是否包含违规内容。</li>
/// <li>支持设置回调地址 Callback 获取检测结果,同时支持通过接口(查询语音检测结果)主动轮询获取检测结果。</li>
/// <li>支持场景输入,包括:谩骂、色情、涉政等场景</li>
/// <li>支持批量提交检测任务。检测任务列表最多支持100个。</li>
/// </br>
/// <h4><b>音频文件限制说明:</b></h4>
/// <li>音频文件大小限制100 M</li>
/// <li>音频文件时长限制30分钟</li>
/// <li>音频文件格式支持的类型:.wav、.m4a、.amr、.mp3、.aac、.wma、.ogg</li>
/// </br>
/// <h4><b>语音流限制说明:</b></h4>
/// <li>语音流格式支持的类型:.m3u8、.flv</li>
/// <li>语音流支持的传输协议RTMP、HTTP、HTTPS</li>
/// <li>语音流时长限制4小时</li>
/// <li>支持音视频流分离并对音频流进行分析</li>
/// </br>
/// <h4 id="Label_Value"><b>Scenes 与 Label 参数说明:</b></h4>
/// <p>提交语音检测任务时,需要指定 Scenes 场景参数,<font color="red">目前要求您设置 Scenes 参数值为:["default"]</font>;而在检测结果中,则包含请求时指定的场景,以及对应类型的检测结果。</p>
/// <table>
/// <thread>
/// <tr>
/// <th>场景</th>
/// <th>描述</th>
/// <th>Label</th>
/// </tr>
/// </thread>
/// <tbody>
/// <tr>
/// <td>语音检测</td>
/// <td>语音检测的检测类型</td>
/// <td>
/// <p>normal:正常文本</p>
/// <p>porn:色情</p>
/// <p>politics:涉政</p>
/// <p>abuse:谩骂</p>
/// <p>ad :广告</p>
/// <p>terrorism:暴恐</p>
/// <p>contraband :违禁</p>
/// <p>customized:自定义词库。目前白名单开放,如有需要请<a href="https://cloud.tencent.com/apply/p/8809fjcik56">联系我们</a>。</p>
/// </td>
/// </tr>
/// </tbody>
/// </table>
/// </br>
/// <h4 id="Callback_Declare"><b>回调相关说明:</b></h4>
/// <li>如果在请求参数中指定了回调地址参数 Callback即一个 HTTP(S) 协议接口的 URL则需要支持 POST 方法,传输数据编码采用 UTF-8。</li>
/// <li>在推送回调数据后,接收到的 HTTP 状态码为 200 时,表示推送成功。</li>
/// <li>HTTP 头参数说明:</li>
/// <table>
/// <thread>
/// <tr>
/// <th>名称</th>
/// <th>类型</th>
/// <th>是否必需</th>
/// <th>描述</th>
/// </tr>
/// </thread>
/// <tbody>
/// <tr>
/// <td>Signatue</td>
/// <td>string</td>
/// <td>是</td>
/// <td>签名,具体见<a href="#Callback_Signatue">签名生成说明</a></td>
/// </tr>
/// </tbody>
/// </table>
/// <ul id="Callback_Signatue">
/// <li>签名生成说明:</li>
/// <ul>
/// <li>使用 HMAC-SH1 算法, 最终结果做 BASE64 编码;</li>
/// <li>签名原文串为 POST+body 的整个json内容(长度以 Content-Length 为准);</li>
/// <li>签名key为应用的 SecretKey可以通过控制台查看。</li>
/// </ul>
/// </ul>
///
/// <li>回调示例如下<font color="red">(详细字段说明见结构:
/// <a href="https://cloud.tencent.com/document/api/607/35375#DescribeScanResult" target="_blank">DescribeScanResult</a></font></li>
/// <pre><code>{
/// "Code": 0,
/// "DataId": "1400000000_test_data_id",
/// "ScanFinishTime": 1566720906,
/// "HitFlag": true,
/// "Live": false,
/// "Msg": "",
/// "ScanPiece": [{
/// "DumpUrl": "",
/// "HitFlag": true,
/// "MainType": "abuse",
/// "RoomId": "123",
/// "OpenId": "xxx",
/// "Info":"",
/// "Offset": 0,
/// "Duration": 3400,
/// "PieceStartTime":1574684231,
/// "ScanDetail": [{
/// "EndTime": 1110,
/// "KeyWord": "xxx",
/// "Label": "abuse",
/// "Rate": "90.00",
/// "StartTime": 1110
/// }, {
/// "EndTime": 1380,
/// "KeyWord": "xxx",
/// "Label": "abuse",
/// "Rate": "90.00",
/// "StartTime": 930
/// }, {
/// "EndTime": 1560,
/// "KeyWord": "xxx",
/// "Label": "abuse",
/// "Rate": "90.00",
/// "StartTime": 930
/// }, {
/// "EndTime": 2820,
/// "KeyWord": "xxx",
/// "Label": "abuse",
/// "Rate": "90.00",
/// "StartTime": 2490
/// }]
/// }],
/// "ScanStartTime": 1566720905,
/// "Scenes": [
/// "default"
/// ],
/// "Status": "Success",
/// "TaskId": "xxx",
/// "Url": "https://xxx/xxx.m4a"
/// }
/// </code></pre>
/// </summary>
/// <param name="req"><see cref="ScanVoiceRequest"/></param>
/// <returns><see cref="ScanVoiceResponse"/></returns>
public ScanVoiceResponse ScanVoiceSync(ScanVoiceRequest req)
{
JsonResponseModel<ScanVoiceResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "ScanVoice");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ScanVoiceResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 本接口用于识别涉黄、涉政等违规音频,成功会回调配置在应用的回调地址。回调示例如下:
/// {"BizId":0,"FileId":"test_file_id","FileName":"test_file_name","FileUrl":"test_file_url","OpenId":"test_open_id","TimeStamp":"0000-00-00 00:00:00","Data":[{"Type":1,"Word":"xx"}]}
/// Type表示过滤类型1政治2色情3谩骂
/// </summary>
/// <param name="req"><see cref="VoiceFilterRequest"/></param>
/// <returns><see cref="VoiceFilterResponse"/></returns>
public async Task<VoiceFilterResponse> VoiceFilter(VoiceFilterRequest req)
{
JsonResponseModel<VoiceFilterResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "VoiceFilter");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<VoiceFilterResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 本接口用于识别涉黄、涉政等违规音频,成功会回调配置在应用的回调地址。回调示例如下:
/// {"BizId":0,"FileId":"test_file_id","FileName":"test_file_name","FileUrl":"test_file_url","OpenId":"test_open_id","TimeStamp":"0000-00-00 00:00:00","Data":[{"Type":1,"Word":"xx"}]}
/// Type表示过滤类型1政治2色情3谩骂
/// </summary>
/// <param name="req"><see cref="VoiceFilterRequest"/></param>
/// <returns><see cref="VoiceFilterResponse"/></returns>
public VoiceFilterResponse VoiceFilterSync(VoiceFilterRequest req)
{
JsonResponseModel<VoiceFilterResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "VoiceFilter");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<VoiceFilterResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
}
}

View File

@@ -0,0 +1,67 @@
/*
* 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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class AppStatisticsItem : AbstractModel
{
/// <summary>
/// 实时语音统计数据
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("RealtimeSpeechStatisticsItem")]
public RealTimeSpeechStatisticsItem RealtimeSpeechStatisticsItem{ get; set; }
/// <summary>
/// 语音消息统计数据
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("VoiceMessageStatisticsItem")]
public VoiceMessageStatisticsItem VoiceMessageStatisticsItem{ get; set; }
/// <summary>
/// 语音过滤统计数据
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("VoiceFilterStatisticsItem")]
public VoiceFilterStatisticsItem VoiceFilterStatisticsItem{ get; set; }
/// <summary>
/// 统计时间
/// </summary>
[JsonProperty("Date")]
public string Date{ 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 + "RealtimeSpeechStatisticsItem.", this.RealtimeSpeechStatisticsItem);
this.SetParamObj(map, prefix + "VoiceMessageStatisticsItem.", this.VoiceMessageStatisticsItem);
this.SetParamObj(map, prefix + "VoiceFilterStatisticsItem.", this.VoiceFilterStatisticsItem);
this.SetParamSimple(map, prefix + "Date", this.Date);
}
}
}

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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateAppRequest : AbstractModel
{
/// <summary>
/// 应用名称
/// </summary>
[JsonProperty("AppName")]
public string AppName{ get; set; }
/// <summary>
/// 腾讯云项目ID默认为0表示默认项目
/// </summary>
[JsonProperty("ProjectId")]
public ulong? ProjectId{ get; set; }
/// <summary>
/// 需要支持的引擎列表,默认全选。
/// </summary>
[JsonProperty("EngineList")]
public string[] EngineList{ get; set; }
/// <summary>
/// 服务区域列表,默认全选。
/// </summary>
[JsonProperty("RegionList")]
public string[] RegionList{ get; set; }
/// <summary>
/// 实时语音服务配置数据
/// </summary>
[JsonProperty("RealtimeSpeechConf")]
public RealtimeSpeechConf RealtimeSpeechConf{ get; set; }
/// <summary>
/// 语音消息及转文本服务配置数据
/// </summary>
[JsonProperty("VoiceMessageConf")]
public VoiceMessageConf VoiceMessageConf{ get; set; }
/// <summary>
/// 语音分析服务配置数据
/// </summary>
[JsonProperty("VoiceFilterConf")]
public VoiceFilterConf VoiceFilterConf{ get; set; }
/// <summary>
/// 需要添加的标签列表
/// </summary>
[JsonProperty("Tags")]
public Tag[] Tags{ 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 + "AppName", this.AppName);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamArraySimple(map, prefix + "EngineList.", this.EngineList);
this.SetParamArraySimple(map, prefix + "RegionList.", this.RegionList);
this.SetParamObj(map, prefix + "RealtimeSpeechConf.", this.RealtimeSpeechConf);
this.SetParamObj(map, prefix + "VoiceMessageConf.", this.VoiceMessageConf);
this.SetParamObj(map, prefix + "VoiceFilterConf.", this.VoiceFilterConf);
this.SetParamArrayObj(map, prefix + "Tags.", this.Tags);
}
}
}

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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateAppResponse : AbstractModel
{
/// <summary>
/// 应用ID由后台自动生成。
/// </summary>
[JsonProperty("BizId")]
public ulong? BizId{ get; set; }
/// <summary>
/// 应用名称透传输入参数的AppName
/// </summary>
[JsonProperty("AppName")]
public string AppName{ get; set; }
/// <summary>
/// 项目ID透传输入的ProjectId
/// </summary>
[JsonProperty("ProjectId")]
public ulong? ProjectId{ get; set; }
/// <summary>
/// 应用密钥GME SDK初始化时使用
/// </summary>
[JsonProperty("SecretKey")]
public string SecretKey{ get; set; }
/// <summary>
/// 服务创建时间戳
/// </summary>
[JsonProperty("CreateTime")]
public ulong? CreateTime{ get; set; }
/// <summary>
/// 实时语音服务配置数据
/// </summary>
[JsonProperty("RealtimeSpeechConf")]
public RealtimeSpeechConf RealtimeSpeechConf{ get; set; }
/// <summary>
/// 语音消息及转文本服务配置数据
/// </summary>
[JsonProperty("VoiceMessageConf")]
public VoiceMessageConf VoiceMessageConf{ get; set; }
/// <summary>
/// 语音分析服务配置数据
/// </summary>
[JsonProperty("VoiceFilterConf")]
public VoiceFilterConf VoiceFilterConf{ 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 + "BizId", this.BizId);
this.SetParamSimple(map, prefix + "AppName", this.AppName);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamSimple(map, prefix + "SecretKey", this.SecretKey);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamObj(map, prefix + "RealtimeSpeechConf.", this.RealtimeSpeechConf);
this.SetParamObj(map, prefix + "VoiceMessageConf.", this.VoiceMessageConf);
this.SetParamObj(map, prefix + "VoiceFilterConf.", this.VoiceFilterConf);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* 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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeAppStatisticsRequest : AbstractModel
{
/// <summary>
/// GME应用ID
/// </summary>
[JsonProperty("BizId")]
public ulong? BizId{ get; set; }
/// <summary>
/// 数据开始时间,东八区时间,格式: 年-月-日,如: 2018-07-13
/// </summary>
[JsonProperty("StartDate")]
public string StartDate{ get; set; }
/// <summary>
/// 数据结束时间,东八区时间,格式: 年-月-日,如: 2018-07-13
/// </summary>
[JsonProperty("EndDate")]
public string EndDate{ get; set; }
/// <summary>
/// 要查询的服务列表取值RealTimeSpeech/VoiceMessage/VoiceFilter
/// </summary>
[JsonProperty("Services")]
public string[] Services{ 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 + "BizId", this.BizId);
this.SetParamSimple(map, prefix + "StartDate", this.StartDate);
this.SetParamSimple(map, prefix + "EndDate", this.EndDate);
this.SetParamArraySimple(map, prefix + "Services.", this.Services);
}
}
}

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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeAppStatisticsResponse : AbstractModel
{
/// <summary>
/// 应用用量统计数据
/// </summary>
[JsonProperty("AppStatistics")]
public AppStatisticsItem[] AppStatistics{ 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 + "AppStatistics.", this.AppStatistics);
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* 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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeFilterResultListRequest : AbstractModel
{
/// <summary>
/// 应用ID
/// </summary>
[JsonProperty("BizId")]
public ulong? BizId{ get; set; }
/// <summary>
/// 开始时间,格式为 年-月-日,如: 2018-07-11
/// </summary>
[JsonProperty("StartDate")]
public string StartDate{ get; set; }
/// <summary>
/// 结束时间,格式为 年-月-日,如: 2018-07-11
/// </summary>
[JsonProperty("EndDate")]
public string EndDate{ get; set; }
/// <summary>
/// 偏移量默认值为0。
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 返回数量默认值为10最大值为100。
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ 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 + "BizId", this.BizId);
this.SetParamSimple(map, prefix + "StartDate", this.StartDate);
this.SetParamSimple(map, prefix + "EndDate", this.EndDate);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
}
}
}

View File

@@ -0,0 +1,59 @@
/*
* 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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeFilterResultListResponse : AbstractModel
{
/// <summary>
/// 过滤结果总数
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("TotalCount")]
public ulong? TotalCount{ get; set; }
/// <summary>
/// 当前分页过滤结果列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Data")]
public VoiceFilterInfo[] Data{ 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.SetParamSimple(map, prefix + "TotalCount", this.TotalCount);
this.SetParamArrayObj(map, prefix + "Data.", this.Data);
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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeFilterResultRequest : AbstractModel
{
/// <summary>
/// 应用ID
/// </summary>
[JsonProperty("BizId")]
public ulong? BizId{ get; set; }
/// <summary>
/// 文件ID
/// </summary>
[JsonProperty("FileId")]
public string FileId{ 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 + "BizId", this.BizId);
this.SetParamSimple(map, prefix + "FileId", this.FileId);
}
}
}

View File

@@ -0,0 +1,51 @@
/*
* 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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeFilterResultResponse : AbstractModel
{
/// <summary>
/// 过滤结果
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Data")]
public VoiceFilterInfo Data{ 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 + "Data.", this.Data);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,125 @@
/*
* 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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeScanResult : AbstractModel
{
/// <summary>
/// 业务返回码
/// </summary>
[JsonProperty("Code")]
public long? Code{ get; set; }
/// <summary>
/// 数据唯一 ID
/// </summary>
[JsonProperty("DataId")]
public string DataId{ get; set; }
/// <summary>
/// 检测完成的时间戳
/// </summary>
[JsonProperty("ScanFinishTime")]
public ulong? ScanFinishTime{ get; set; }
/// <summary>
/// 是否违规
/// </summary>
[JsonProperty("HitFlag")]
public bool? HitFlag{ get; set; }
/// <summary>
/// 是否为流
/// </summary>
[JsonProperty("Live")]
public bool? Live{ get; set; }
/// <summary>
/// 业务返回描述
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Msg")]
public string Msg{ get; set; }
/// <summary>
/// 检测结果Code 为 0 时返回
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ScanPiece")]
public ScanPiece[] ScanPiece{ get; set; }
/// <summary>
/// 提交检测的时间戳
/// </summary>
[JsonProperty("ScanStartTime")]
public ulong? ScanStartTime{ get; set; }
/// <summary>
/// 语音检测场景,对应请求时的 Scene
/// </summary>
[JsonProperty("Scenes")]
public string[] Scenes{ get; set; }
/// <summary>
/// 语音检测任务 ID由后台分配
/// </summary>
[JsonProperty("TaskId")]
public string TaskId{ get; set; }
/// <summary>
/// 文件或接流地址
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// 检测任务执行结果状态,分别为:
/// <li>Start: 任务开始</li>
/// <li>Success: 成功结束</li>
/// <li>Error: 异常</li>
/// </summary>
[JsonProperty("Status")]
public string Status{ 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 + "Code", this.Code);
this.SetParamSimple(map, prefix + "DataId", this.DataId);
this.SetParamSimple(map, prefix + "ScanFinishTime", this.ScanFinishTime);
this.SetParamSimple(map, prefix + "HitFlag", this.HitFlag);
this.SetParamSimple(map, prefix + "Live", this.Live);
this.SetParamSimple(map, prefix + "Msg", this.Msg);
this.SetParamArrayObj(map, prefix + "ScanPiece.", this.ScanPiece);
this.SetParamSimple(map, prefix + "ScanStartTime", this.ScanStartTime);
this.SetParamArraySimple(map, prefix + "Scenes.", this.Scenes);
this.SetParamSimple(map, prefix + "TaskId", this.TaskId);
this.SetParamSimple(map, prefix + "Url", this.Url);
this.SetParamSimple(map, prefix + "Status", this.Status);
}
}
}

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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeScanResultListRequest : AbstractModel
{
/// <summary>
/// 应用 ID登录[控制台](https://console.cloud.tencent.com/gamegme)创建应用得到的AppID
/// </summary>
[JsonProperty("BizId")]
public ulong? BizId{ get; set; }
/// <summary>
/// 查询的任务 ID 列表,任务 ID 列表最多支持 100 个。
/// </summary>
[JsonProperty("TaskIdList")]
public string[] TaskIdList{ get; set; }
/// <summary>
/// 任务返回结果数量默认10上限500。大文件任务忽略此参数返回全量结果
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ 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 + "BizId", this.BizId);
this.SetParamArraySimple(map, prefix + "TaskIdList.", this.TaskIdList);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
}
}
}

View File

@@ -0,0 +1,51 @@
/*
* 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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeScanResultListResponse : AbstractModel
{
/// <summary>
/// 要查询的语音检测任务的结果
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Data")]
public DescribeScanResult[] Data{ 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 + "Data.", this.Data);
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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyAppStatusRequest : AbstractModel
{
/// <summary>
/// 应用ID创建应用后由后台生成并返回。
/// </summary>
[JsonProperty("BizId")]
public ulong? BizId{ get; set; }
/// <summary>
/// 应用状态取值open/close
/// </summary>
[JsonProperty("Status")]
public string Status{ 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 + "BizId", this.BizId);
this.SetParamSimple(map, prefix + "Status", this.Status);
}
}
}

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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyAppStatusResponse : AbstractModel
{
/// <summary>
/// GME应用ID
/// </summary>
[JsonProperty("BizId")]
public ulong? BizId{ get; set; }
/// <summary>
/// 应用状态取值open/close
/// </summary>
[JsonProperty("Status")]
public string Status{ 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 + "BizId", this.BizId);
this.SetParamSimple(map, prefix + "Status", this.Status);
}
}
}

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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class RealTimeSpeechStatisticsItem : AbstractModel
{
/// <summary>
/// 大陆地区DAU
/// </summary>
[JsonProperty("MainLandDau")]
public ulong? MainLandDau{ get; set; }
/// <summary>
/// 大陆地区PCU
/// </summary>
[JsonProperty("MainLandPcu")]
public ulong? MainLandPcu{ get; set; }
/// <summary>
/// 大陆地区总使用时长单位为min
/// </summary>
[JsonProperty("MainLandDuration")]
public ulong? MainLandDuration{ get; set; }
/// <summary>
/// 海外地区DAU
/// </summary>
[JsonProperty("OverseaDau")]
public ulong? OverseaDau{ get; set; }
/// <summary>
/// 海外地区PCU
/// </summary>
[JsonProperty("OverseaPcu")]
public ulong? OverseaPcu{ get; set; }
/// <summary>
/// 海外地区总使用时长单位为min
/// </summary>
[JsonProperty("OverseaDuration")]
public ulong? OverseaDuration{ 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 + "MainLandDau", this.MainLandDau);
this.SetParamSimple(map, prefix + "MainLandPcu", this.MainLandPcu);
this.SetParamSimple(map, prefix + "MainLandDuration", this.MainLandDuration);
this.SetParamSimple(map, prefix + "OverseaDau", this.OverseaDau);
this.SetParamSimple(map, prefix + "OverseaPcu", this.OverseaPcu);
this.SetParamSimple(map, prefix + "OverseaDuration", this.OverseaDuration);
}
}
}

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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class RealtimeSpeechConf : AbstractModel
{
/// <summary>
/// 实时语音服务开关取值open/close
/// </summary>
[JsonProperty("Status")]
public string Status{ get; set; }
/// <summary>
/// 实时语音音质类型取值high-高音质ordinary-普通音质。默认高音质。普通音质仅白名单开放,如需要普通音质,请联系腾讯云商务。
/// </summary>
[JsonProperty("Quality")]
public string Quality{ 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 + "Status", this.Status);
this.SetParamSimple(map, prefix + "Quality", this.Quality);
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* 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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ScanDetail : AbstractModel
{
/// <summary>
/// 违规场景,参照<a href="https://cloud.tencent.com/document/product/607/37622#Label_Value">Label</a>定义
/// </summary>
[JsonProperty("Label")]
public string Label{ get; set; }
/// <summary>
/// 该场景下概率[0.00,100.00],分值越大违规概率越高
/// </summary>
[JsonProperty("Rate")]
public string Rate{ get; set; }
/// <summary>
/// 违规关键字
/// </summary>
[JsonProperty("KeyWord")]
public string KeyWord{ get; set; }
/// <summary>
/// 关键字在音频的开始时间从0开始的偏移量单位为毫秒
/// </summary>
[JsonProperty("StartTime")]
public ulong? StartTime{ get; set; }
/// <summary>
/// 关键字在音频的结束时间从0开始的偏移量,,单位为毫秒
/// </summary>
[JsonProperty("EndTime")]
public ulong? EndTime{ 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 + "Label", this.Label);
this.SetParamSimple(map, prefix + "Rate", this.Rate);
this.SetParamSimple(map, prefix + "KeyWord", this.KeyWord);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
}
}
}

View File

@@ -0,0 +1,114 @@
/*
* 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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ScanPiece : AbstractModel
{
/// <summary>
/// 流检测时返回音频转存地址保留30min
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("DumpUrl")]
public string DumpUrl{ get; set; }
/// <summary>
/// 是否违规
/// </summary>
[JsonProperty("HitFlag")]
public bool? HitFlag{ get; set; }
/// <summary>
/// 违规主要类型
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("MainType")]
public string MainType{ get; set; }
/// <summary>
/// 语音检测详情
/// </summary>
[JsonProperty("ScanDetail")]
public ScanDetail[] ScanDetail{ get; set; }
/// <summary>
/// gme实时语音房间ID透传任务传入时的RoomId
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("RoomId")]
public string RoomId{ get; set; }
/// <summary>
/// gme实时语音用户ID透传任务传入时的OpenId
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("OpenId")]
public string OpenId{ get; set; }
/// <summary>
/// 备注
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Info")]
public string Info{ get; set; }
/// <summary>
/// 流检测时分片在流中的偏移时间,单位毫秒
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 流检测时分片时长
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Duration")]
public ulong? Duration{ get; set; }
/// <summary>
/// 分片开始检测时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("PieceStartTime")]
public ulong? PieceStartTime{ 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 + "DumpUrl", this.DumpUrl);
this.SetParamSimple(map, prefix + "HitFlag", this.HitFlag);
this.SetParamSimple(map, prefix + "MainType", this.MainType);
this.SetParamArrayObj(map, prefix + "ScanDetail.", this.ScanDetail);
this.SetParamSimple(map, prefix + "RoomId", this.RoomId);
this.SetParamSimple(map, prefix + "OpenId", this.OpenId);
this.SetParamSimple(map, prefix + "Info", this.Info);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Duration", this.Duration);
this.SetParamSimple(map, prefix + "PieceStartTime", this.PieceStartTime);
}
}
}

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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ScanVoiceRequest : AbstractModel
{
/// <summary>
/// 应用ID登录[控制台 - 服务管理](https://console.cloud.tencent.com/gamegme)创建应用得到的AppID
/// </summary>
[JsonProperty("BizId")]
public ulong? BizId{ get; set; }
/// <summary>
/// 语音检测场景,参数值目前要求为 default。 预留场景设置: 谩骂、色情、涉政、广告、暴恐、违禁等场景,<a href="#Label_Value">具体取值见上述 Label 说明。</a>
/// </summary>
[JsonProperty("Scenes")]
public string[] Scenes{ get; set; }
/// <summary>
/// 是否为直播流。值为 false 时表示普通语音文件检测;为 true 时表示语音流检测。
/// </summary>
[JsonProperty("Live")]
public bool? Live{ get; set; }
/// <summary>
/// 语音检测任务列表列表最多支持100个检测任务。结构体中包含
/// <li>DataId数据的唯一ID</li>
/// <li>Url数据文件的url为 urlencode 编码,流式则为拉流地址</li>
/// </summary>
[JsonProperty("Tasks")]
public Task[] Tasks{ get; set; }
/// <summary>
/// 异步检测结果回调地址,具体见上述<a href="#Callback_Declare">回调相关说明</a>。(说明:该字段为空时,必须通过接口(查询语音检测结果)获取检测结果)。
/// </summary>
[JsonProperty("Callback")]
public string Callback{ 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 + "BizId", this.BizId);
this.SetParamArraySimple(map, prefix + "Scenes.", this.Scenes);
this.SetParamSimple(map, prefix + "Live", this.Live);
this.SetParamArrayObj(map, prefix + "Tasks.", this.Tasks);
this.SetParamSimple(map, prefix + "Callback", this.Callback);
}
}
}

View File

@@ -0,0 +1,51 @@
/*
* 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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ScanVoiceResponse : AbstractModel
{
/// <summary>
/// 语音检测返回。Data 字段是 JSON 数组,每一个元素包含:<li>DataId 请求中对应的 DataId。</li>
/// <li>TaskID :该检测任务的 ID用于轮询语音检测结果。</li>
/// </summary>
[JsonProperty("Data")]
public ScanVoiceResult[] Data{ 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 + "Data.", this.Data);
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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ScanVoiceResult : AbstractModel
{
/// <summary>
/// 数据ID
/// </summary>
[JsonProperty("DataId")]
public string DataId{ get; set; }
/// <summary>
/// 任务ID
/// </summary>
[JsonProperty("TaskId")]
public string TaskId{ 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 + "DataId", this.DataId);
this.SetParamSimple(map, prefix + "TaskId", this.TaskId);
}
}
}

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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Tag : AbstractModel
{
/// <summary>
/// 标签键
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("TagKey")]
public string TagKey{ get; set; }
/// <summary>
/// 标签值
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("TagValue")]
public string TagValue{ 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 + "TagKey", this.TagKey);
this.SetParamSimple(map, prefix + "TagValue", this.TagValue);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* 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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Task : AbstractModel
{
/// <summary>
/// 数据的唯一ID
/// </summary>
[JsonProperty("DataId")]
public string DataId{ get; set; }
/// <summary>
/// 数据文件的url为 urlencode 编码,流式则为拉流地址
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// gme实时语音房间ID通过gme实时语音进行语音分析时输入
/// </summary>
[JsonProperty("RoomId")]
public string RoomId{ get; set; }
/// <summary>
/// gme实时语音用户ID通过gme实时语音进行语音分析时输入
/// </summary>
[JsonProperty("OpenId")]
public string OpenId{ 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 + "DataId", this.DataId);
this.SetParamSimple(map, prefix + "Url", this.Url);
this.SetParamSimple(map, prefix + "RoomId", this.RoomId);
this.SetParamSimple(map, prefix + "OpenId", this.OpenId);
}
}
}

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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VoiceFilter : AbstractModel
{
/// <summary>
/// 过滤类型1政治2色情3涉毒4谩骂
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Type")]
public ulong? Type{ get; set; }
/// <summary>
/// 过滤命中关键词
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Word")]
public string Word{ 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 + "Type", this.Type);
this.SetParamSimple(map, prefix + "Word", this.Word);
}
}
}

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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VoiceFilterConf : AbstractModel
{
/// <summary>
/// 语音过滤服务开关取值open/close
/// </summary>
[JsonProperty("Status")]
public string Status{ 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 + "Status", this.Status);
}
}
}

View File

@@ -0,0 +1,84 @@
/*
* 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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VoiceFilterInfo : AbstractModel
{
/// <summary>
/// 应用ID
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("BizId")]
public ulong? BizId{ get; set; }
/// <summary>
/// 文件ID表示文件唯一ID
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("FileId")]
public string FileId{ get; set; }
/// <summary>
/// 文件名
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("FileName")]
public string FileName{ get; set; }
/// <summary>
/// 用户ID
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("OpenId")]
public string OpenId{ get; set; }
/// <summary>
/// 数据创建时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Timestamp")]
public string Timestamp{ get; set; }
/// <summary>
/// 过滤结果列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Data")]
public VoiceFilter[] Data{ 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 + "BizId", this.BizId);
this.SetParamSimple(map, prefix + "FileId", this.FileId);
this.SetParamSimple(map, prefix + "FileName", this.FileName);
this.SetParamSimple(map, prefix + "OpenId", this.OpenId);
this.SetParamSimple(map, prefix + "Timestamp", this.Timestamp);
this.SetParamArrayObj(map, prefix + "Data.", this.Data);
}
}
}

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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VoiceFilterRequest : AbstractModel
{
/// <summary>
/// 应用ID登录[控制台](https://console.cloud.tencent.com/gamegme)创建应用得到的AppID
/// </summary>
[JsonProperty("BizId")]
public ulong? BizId{ get; set; }
/// <summary>
/// 文件ID表示文件唯一ID
/// </summary>
[JsonProperty("FileId")]
public string FileId{ get; set; }
/// <summary>
/// 文件名
/// </summary>
[JsonProperty("FileName")]
public string FileName{ get; set; }
/// <summary>
/// 文件urlurlencode编码FileUrl和FileContent二选一
/// </summary>
[JsonProperty("FileUrl")]
public string FileUrl{ get; set; }
/// <summary>
/// 文件内容base64编码FileUrl和FileContent二选一
/// </summary>
[JsonProperty("FileContent")]
public string FileContent{ get; set; }
/// <summary>
/// 用户ID
/// </summary>
[JsonProperty("OpenId")]
public string OpenId{ 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 + "BizId", this.BizId);
this.SetParamSimple(map, prefix + "FileId", this.FileId);
this.SetParamSimple(map, prefix + "FileName", this.FileName);
this.SetParamSimple(map, prefix + "FileUrl", this.FileUrl);
this.SetParamSimple(map, prefix + "FileContent", this.FileContent);
this.SetParamSimple(map, prefix + "OpenId", this.OpenId);
}
}
}

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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VoiceFilterResponse : AbstractModel
{
/// <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.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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VoiceFilterStatisticsItem : AbstractModel
{
/// <summary>
/// 语音过滤总时长
/// </summary>
[JsonProperty("Duration")]
public ulong? Duration{ 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 + "Duration", this.Duration);
}
}
}

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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VoiceMessageConf : AbstractModel
{
/// <summary>
/// 离线语音服务开关取值open/close
/// </summary>
[JsonProperty("Status")]
public string Status{ get; set; }
/// <summary>
/// 离线语音支持语种,取值: all-全部cnen-中英文。默认为中英文
/// </summary>
[JsonProperty("Language")]
public string Language{ 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 + "Status", this.Status);
this.SetParamSimple(map, prefix + "Language", this.Language);
}
}
}

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.Gme.V20180711.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VoiceMessageStatisticsItem : AbstractModel
{
/// <summary>
/// 离线语音DAU
/// </summary>
[JsonProperty("Dau")]
public ulong? Dau{ 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 + "Dau", this.Dau);
}
}
}