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