首次推送

This commit is contained in:
lym
2026-03-09 00:13:46 +08:00
commit b19613bb31
13974 changed files with 2767735 additions and 0 deletions

View File

@@ -0,0 +1,256 @@
/*
* 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.Ame.V20190916
{
using Newtonsoft.Json;
using System.Threading.Tasks;
using TencentCloud.Common;
using TencentCloud.Common.Profile;
using TencentCloud.Ame.V20190916.Models;
public class AmeClient : AbstractClient{
private const string endpoint = "ame.tencentcloudapi.com";
private const string version = "2019-09-16";
/// <summary>
/// Client constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
public AmeClient(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 AmeClient(Credential credential, string region, ClientProfile profile)
: base(endpoint, version, credential, region, profile)
{
}
/// <summary>
/// 分类内容下歌曲列表获取根据CategoryID或CategoryCode
/// </summary>
/// <param name="req"><see cref="DescribeItemsRequest"/></param>
/// <returns><see cref="DescribeItemsResponse"/></returns>
public async Task<DescribeItemsResponse> DescribeItems(DescribeItemsRequest req)
{
JsonResponseModel<DescribeItemsResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeItems");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeItemsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 分类内容下歌曲列表获取根据CategoryID或CategoryCode
/// </summary>
/// <param name="req"><see cref="DescribeItemsRequest"/></param>
/// <returns><see cref="DescribeItemsResponse"/></returns>
public DescribeItemsResponse DescribeItemsSync(DescribeItemsRequest req)
{
JsonResponseModel<DescribeItemsResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeItems");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeItemsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 根据接口的模式及歌曲ID来取得歌词信息。
/// </summary>
/// <param name="req"><see cref="DescribeLyricRequest"/></param>
/// <returns><see cref="DescribeLyricResponse"/></returns>
public async Task<DescribeLyricResponse> DescribeLyric(DescribeLyricRequest req)
{
JsonResponseModel<DescribeLyricResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeLyric");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeLyricResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 根据接口的模式及歌曲ID来取得歌词信息。
/// </summary>
/// <param name="req"><see cref="DescribeLyricRequest"/></param>
/// <returns><see cref="DescribeLyricResponse"/></returns>
public DescribeLyricResponse DescribeLyricSync(DescribeLyricRequest req)
{
JsonResponseModel<DescribeLyricResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeLyric");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeLyricResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 根据接口的模式及歌曲ID来取得对应权限的歌曲播放地址等信息。
/// </summary>
/// <param name="req"><see cref="DescribeMusicRequest"/></param>
/// <returns><see cref="DescribeMusicResponse"/></returns>
public async Task<DescribeMusicResponse> DescribeMusic(DescribeMusicRequest req)
{
JsonResponseModel<DescribeMusicResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeMusic");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeMusicResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 根据接口的模式及歌曲ID来取得对应权限的歌曲播放地址等信息。
/// </summary>
/// <param name="req"><see cref="DescribeMusicRequest"/></param>
/// <returns><see cref="DescribeMusicResponse"/></returns>
public DescribeMusicResponse DescribeMusicSync(DescribeMusicRequest req)
{
JsonResponseModel<DescribeMusicResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeMusic");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeMusicResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 获取素材库列表时使用
/// </summary>
/// <param name="req"><see cref="DescribeStationsRequest"/></param>
/// <returns><see cref="DescribeStationsResponse"/></returns>
public async Task<DescribeStationsResponse> DescribeStations(DescribeStationsRequest req)
{
JsonResponseModel<DescribeStationsResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeStations");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeStationsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 获取素材库列表时使用
/// </summary>
/// <param name="req"><see cref="DescribeStationsRequest"/></param>
/// <returns><see cref="DescribeStationsResponse"/></returns>
public DescribeStationsResponse DescribeStationsSync(DescribeStationsRequest req)
{
JsonResponseModel<DescribeStationsResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeStations");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeStationsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 客户上报用户数据功能,为了更好的为用户提供优质服务
/// </summary>
/// <param name="req"><see cref="ReportDataRequest"/></param>
/// <returns><see cref="ReportDataResponse"/></returns>
public async Task<ReportDataResponse> ReportData(ReportDataRequest req)
{
JsonResponseModel<ReportDataResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "ReportData");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ReportDataResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 客户上报用户数据功能,为了更好的为用户提供优质服务
/// </summary>
/// <param name="req"><see cref="ReportDataRequest"/></param>
/// <returns><see cref="ReportDataResponse"/></returns>
public ReportDataResponse ReportDataSync(ReportDataRequest req)
{
JsonResponseModel<ReportDataResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "ReportData");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ReportDataResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
}
}

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.Ame.V20190916.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Album : AbstractModel
{
/// <summary>
/// 专辑名
/// </summary>
[JsonProperty("AlbumName")]
public string AlbumName{ get; set; }
/// <summary>
/// 专辑图片大小及类别
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ImagePathMap")]
public ImagePath[] ImagePathMap{ 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 + "AlbumName", this.AlbumName);
this.SetParamArrayObj(map, prefix + "ImagePathMap.", this.ImagePathMap);
}
}
}

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.Ame.V20190916.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Artist : AbstractModel
{
/// <summary>
/// 歌手名
/// </summary>
[JsonProperty("ArtistName")]
public string ArtistName{ 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 + "ArtistName", this.ArtistName);
}
}
}

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.Ame.V20190916.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DataInfo : AbstractModel
{
/// <summary>
/// Song Name
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 歌曲版本
/// </summary>
[JsonProperty("Version")]
public string Version{ get; set; }
/// <summary>
/// 歌曲总时长(非试听时长)
/// </summary>
[JsonProperty("Duration")]
public string Duration{ get; set; }
/// <summary>
/// 试听开始时间
/// </summary>
[JsonProperty("AuditionBegin")]
public ulong? AuditionBegin{ get; set; }
/// <summary>
/// 试听结束时间
/// </summary>
[JsonProperty("AuditionEnd")]
public ulong? AuditionEnd{ 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 + "Name", this.Name);
this.SetParamSimple(map, prefix + "Version", this.Version);
this.SetParamSimple(map, prefix + "Duration", this.Duration);
this.SetParamSimple(map, prefix + "AuditionBegin", this.AuditionBegin);
this.SetParamSimple(map, prefix + "AuditionEnd", this.AuditionEnd);
}
}
}

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.Ame.V20190916.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeItemsRequest : AbstractModel
{
/// <summary>
/// offset (Default = 0)(当前页-1) * Limit
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 条数必须大于0最大值为30
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// (电台/歌单IDCategoryId和CategoryCode两个必传1个可以从<a href="https://cloud.tencent.com/document/product/1155/40109">获取分类内容Station列表接口</a>中获取。
/// </summary>
[JsonProperty("CategoryId")]
public string CategoryId{ get; set; }
/// <summary>
/// (电台/歌单IDCategoryId和CategoryCode两个必传1个可以从<a href="https://cloud.tencent.com/document/product/1155/40109">获取分类内容Station列表接口</a>中获取。
/// </summary>
[JsonProperty("CategoryCode")]
public string CategoryCode{ 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 + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "CategoryId", this.CategoryId);
this.SetParamSimple(map, prefix + "CategoryCode", this.CategoryCode);
}
}
}

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.Ame.V20190916.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeItemsResponse : AbstractModel
{
/// <summary>
/// 分页偏移量
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 当前页歌曲数量
/// </summary>
[JsonProperty("Size")]
public ulong? Size{ get; set; }
/// <summary>
/// 总数据条数
/// </summary>
[JsonProperty("Total")]
public ulong? Total{ get; set; }
/// <summary>
/// 剩余数量total-offset-size通过这个值判断是否
/// 还有下一页
/// </summary>
[JsonProperty("HaveMore")]
public ulong? HaveMore{ get; set; }
/// <summary>
/// Items 歌曲列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Items")]
public Item[] Items{ 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 + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Size", this.Size);
this.SetParamSimple(map, prefix + "Total", this.Total);
this.SetParamSimple(map, prefix + "HaveMore", this.HaveMore);
this.SetParamArrayObj(map, prefix + "Items.", this.Items);
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.Ame.V20190916.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeLyricRequest : AbstractModel
{
/// <summary>
/// 歌曲ID
/// </summary>
[JsonProperty("ItemId")]
public string ItemId{ get; set; }
/// <summary>
/// 歌词格式可选项可不填写目前填写只能填LRC-LRC。该字段为预留的扩展字段。后续如果不填会返回歌曲的所有格式的歌词。如果填写某个正确的格式则只返回该格式的歌词。
/// </summary>
[JsonProperty("SubItemType")]
public string SubItemType{ 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 + "ItemId", this.ItemId);
this.SetParamSimple(map, prefix + "SubItemType", this.SubItemType);
}
}
}

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.Ame.V20190916.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeLyricResponse : AbstractModel
{
/// <summary>
/// 歌词详情
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Lyric")]
public Lyric Lyric{ 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 + "Lyric.", this.Lyric);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,65 @@
/*
* 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.Ame.V20190916.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeMusicRequest : AbstractModel
{
/// <summary>
/// 歌曲ID
/// </summary>
[JsonProperty("ItemId")]
public string ItemId{ get; set; }
/// <summary>
/// 在应用前端播放音乐C端用户的唯一标识。无需是账户信息用户唯一标识即可。
/// </summary>
[JsonProperty("IdentityId")]
public string IdentityId{ get; set; }
/// <summary>
/// 填 MP3-64K-FTD-P 获取歌曲热门片段
/// </summary>
[JsonProperty("SubItemType")]
public string SubItemType{ get; set; }
/// <summary>
/// CDN URL Protocol:HTTP or HTTPS/SSL
/// Values:Y , N(default)
/// </summary>
[JsonProperty("Ssl")]
public string Ssl{ 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 + "ItemId", this.ItemId);
this.SetParamSimple(map, prefix + "IdentityId", this.IdentityId);
this.SetParamSimple(map, prefix + "SubItemType", this.SubItemType);
this.SetParamSimple(map, prefix + "Ssl", this.Ssl);
}
}
}

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.Ame.V20190916.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeMusicResponse : AbstractModel
{
/// <summary>
/// 音乐相关信息
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Music")]
public Music Music{ 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 + "Music.", this.Music);
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.Ame.V20190916.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeStationsRequest : AbstractModel
{
/// <summary>
/// 条数必须大于0
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// offset (Default = 0)(当前页-1) * Limit
/// </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 + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
}
}
}

View File

@@ -0,0 +1,79 @@
/*
* 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.Ame.V20190916.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeStationsResponse : AbstractModel
{
/// <summary>
/// 总数量
/// </summary>
[JsonProperty("Total")]
public ulong? Total{ get; set; }
/// <summary>
/// 分页偏移量
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 当前页station数量
/// </summary>
[JsonProperty("Size")]
public ulong? Size{ get; set; }
/// <summary>
/// 剩余数量total-offset-size通过这个值判断是否还有下一页
/// </summary>
[JsonProperty("HaveMore")]
public ulong? HaveMore{ get; set; }
/// <summary>
/// Stations 素材库列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Stations")]
public Station[] Stations{ 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 + "Total", this.Total);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Size", this.Size);
this.SetParamSimple(map, prefix + "HaveMore", this.HaveMore);
this.SetParamArrayObj(map, prefix + "Stations.", this.Stations);
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.Ame.V20190916.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ImagePath : AbstractModel
{
/// <summary>
/// station图片大小及类别
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Key")]
public string Key{ get; set; }
/// <summary>
/// station图片地址
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Value")]
public string Value{ 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 + "Key", this.Key);
this.SetParamSimple(map, prefix + "Value", this.Value);
}
}
}

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.Ame.V20190916.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Item : AbstractModel
{
/// <summary>
/// Song ID
/// </summary>
[JsonProperty("ItemID")]
public string ItemID{ get; set; }
/// <summary>
/// Song info
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("DataInfo")]
public DataInfo DataInfo{ get; set; }
/// <summary>
/// 专辑信息
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Album")]
public Album Album{ get; set; }
/// <summary>
/// 多个歌手集合
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Artists")]
public Artist[] Artists{ 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 + "ItemID", this.ItemID);
this.SetParamObj(map, prefix + "DataInfo.", this.DataInfo);
this.SetParamObj(map, prefix + "Album.", this.Album);
this.SetParamArrayObj(map, prefix + "Artists.", this.Artists);
}
}
}

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.Ame.V20190916.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Lyric : AbstractModel
{
/// <summary>
/// 歌词cdn地址
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// 歌词后缀名
/// </summary>
[JsonProperty("FileNameExt")]
public string FileNameExt{ get; set; }
/// <summary>
/// 歌词类型
/// </summary>
[JsonProperty("SubItemType")]
public string SubItemType{ 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 + "Url", this.Url);
this.SetParamSimple(map, prefix + "FileNameExt", this.FileNameExt);
this.SetParamSimple(map, prefix + "SubItemType", this.SubItemType);
}
}
}

View File

@@ -0,0 +1,81 @@
/*
* 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.Ame.V20190916.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Music : AbstractModel
{
/// <summary>
/// 音乐播放链接相对路径,必须通过在正版曲库直通车控制台上登记的域名进行拼接。
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// 音频文件大小
/// </summary>
[JsonProperty("FileSize")]
public ulong? FileSize{ get; set; }
/// <summary>
/// 音频文件类型
/// </summary>
[JsonProperty("FileExtension")]
public string FileExtension{ get; set; }
/// <summary>
/// Song fragment start.试听片段开始时间试听时长为auditionEnd-auditionBegin
/// Unit :ms
/// </summary>
[JsonProperty("AuditionBegin")]
public ulong? AuditionBegin{ get; set; }
/// <summary>
/// Song fragment end.试听片段结束时间, 试听时长为auditionEnd-auditionBegin
/// Unit :ms
/// </summary>
[JsonProperty("AuditionEnd")]
public ulong? AuditionEnd{ get; set; }
/// <summary>
/// 音乐播放链接全路径,前提是在正版曲库直通车控制台添加过域名,否则返回空字符。
/// 如果添加过多个域名只返回第一个添加域名的播放全路径。
/// </summary>
[JsonProperty("FullUrl")]
public string FullUrl{ 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 + "Url", this.Url);
this.SetParamSimple(map, prefix + "FileSize", this.FileSize);
this.SetParamSimple(map, prefix + "FileExtension", this.FileExtension);
this.SetParamSimple(map, prefix + "AuditionBegin", this.AuditionBegin);
this.SetParamSimple(map, prefix + "AuditionEnd", this.AuditionEnd);
this.SetParamSimple(map, prefix + "FullUrl", this.FullUrl);
}
}
}

View File

@@ -0,0 +1,55 @@
/*
* 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.Ame.V20190916.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ReportDataRequest : AbstractModel
{
/// <summary>
/// 上报数据
/// 注:reportData为客户端压缩后的上报数据进行16进制转换的字符串数据
/// 压缩说明:
/// a) 上报的json格式字符串通过流的转换ByteArrayInputStream, java.util.zip.GZIPOutputStream获取到压缩后的字节数组。
/// b) 将压缩后的字节数组转成16进制字符串。
///
/// reportData由两部分数据组成
/// 1report_type上报类型
/// 2data歌曲上报数据
/// 不同的report_type对应的data数据结构不一样。
///
/// 详细说明请参考文档reportdata.docx
/// https://github.com/ame-demo/doc
/// </summary>
[JsonProperty("ReportData")]
public string ReportData{ 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 + "ReportData", this.ReportData);
}
}
}

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.Ame.V20190916.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ReportDataResponse : 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,75 @@
/*
* 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.Ame.V20190916.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Station : AbstractModel
{
/// <summary>
/// StationID
/// </summary>
[JsonProperty("CategoryID")]
public string CategoryID{ get; set; }
/// <summary>
/// Station MCCode
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("CategoryCode")]
public string CategoryCode{ get; set; }
/// <summary>
/// Category Name
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// Station的排序值供参考返回结果已按其升序
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Rank")]
public long? Rank{ get; set; }
/// <summary>
/// station图片集合
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ImagePathMap")]
public ImagePath[] ImagePathMap{ 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 + "CategoryID", this.CategoryID);
this.SetParamSimple(map, prefix + "CategoryCode", this.CategoryCode);
this.SetParamSimple(map, prefix + "Name", this.Name);
this.SetParamSimple(map, prefix + "Rank", this.Rank);
this.SetParamArrayObj(map, prefix + "ImagePathMap.", this.ImagePathMap);
}
}
}