Files
g.hnyhua.cn/TencentCloud/Cme/V20191029/Models/SearchMaterialRequest.cs

124 lines
4.4 KiB
C#
Raw Normal View History

/*
* 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.Cme.V20191029.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SearchMaterialRequest : AbstractModel
{
/// <summary>
/// 平台名称,指定访问的平台。
/// </summary>
[JsonProperty("Platform")]
public string Platform{ get; set; }
/// <summary>
/// 指定搜索空间数组长度不得超过5。
/// </summary>
[JsonProperty("SearchScopes")]
public SearchScope[] SearchScopes{ get; set; }
/// <summary>
/// 素材类型,取值:
/// <li>AUDIO音频</li>
/// <li>VIDEO视频 </li>
/// <li>IMAGE图片。</li>
/// </summary>
[JsonProperty("MaterialTypes")]
public string[] MaterialTypes{ get; set; }
/// <summary>
/// 搜索文本模糊匹配素材名称或描述信息匹配项越多匹配度越高排序越优先。长度限制64 个字符。
/// </summary>
[JsonProperty("Text")]
public string Text{ get; set; }
/// <summary>
/// 按画质检索取值为LD/SD/HD/FHD/2K/4K。
/// </summary>
[JsonProperty("Resolution")]
public string Resolution{ get; set; }
/// <summary>
/// 按素材时长检索单位s。
/// </summary>
[JsonProperty("DurationRange")]
public IntegerRange DurationRange{ get; set; }
/// <summary>
/// 按照素材创建时间检索。
/// </summary>
[JsonProperty("CreateTimeRange")]
public TimeRange CreateTimeRange{ get; set; }
/// <summary>
/// 标签集合匹配集合中任意元素。单个标签长度限制10 个字符。数组长度限制10。
/// </summary>
[JsonProperty("Tags")]
public string[] Tags{ get; set; }
/// <summary>
/// 排序方式。Sort.Field 可选值CreateTime。指定 Text 搜索时,将根据匹配度排序,该字段无效。
/// </summary>
[JsonProperty("Sort")]
public SortBy Sort{ get; set; }
/// <summary>
/// 偏移量。默认值0。
/// </summary>
[JsonProperty("Offset")]
public long? Offset{ get; set; }
/// <summary>
/// 返回记录条数默认值50。
/// </summary>
[JsonProperty("Limit")]
public long? Limit{ get; set; }
/// <summary>
/// 操作者。填写用户的 Id用于标识调用者及校验操作权限。
/// </summary>
[JsonProperty("Operator")]
public string Operator{ 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 + "Platform", this.Platform);
this.SetParamArrayObj(map, prefix + "SearchScopes.", this.SearchScopes);
this.SetParamArraySimple(map, prefix + "MaterialTypes.", this.MaterialTypes);
this.SetParamSimple(map, prefix + "Text", this.Text);
this.SetParamSimple(map, prefix + "Resolution", this.Resolution);
this.SetParamObj(map, prefix + "DurationRange.", this.DurationRange);
this.SetParamObj(map, prefix + "CreateTimeRange.", this.CreateTimeRange);
this.SetParamArraySimple(map, prefix + "Tags.", this.Tags);
this.SetParamObj(map, prefix + "Sort.", this.Sort);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "Operator", this.Operator);
}
}
}