Files
g.hnyhua.cn/TencentCloud/Vod/V20180717/Models/WatermarkTemplate.cs
2026-02-07 15:48:27 +08:00

134 lines
5.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 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.Vod.V20180717.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class WatermarkTemplate : AbstractModel
{
/// <summary>
/// 水印模板唯一标识。
/// </summary>
[JsonProperty("Definition")]
public long? Definition{ get; set; }
/// <summary>
/// 水印类型,取值:
/// <li>image图片水印</li>
/// <li>text文字水印。</li>
/// </summary>
[JsonProperty("Type")]
public string Type{ get; set; }
/// <summary>
/// 水印模板名称。
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 模板描述信息。
/// </summary>
[JsonProperty("Comment")]
public string Comment{ get; set; }
/// <summary>
/// 水印图片原点距离视频图像原点的水平位置。
/// <li>当字符串以 % 结尾,表示水印 Left 为视频宽度指定百分比的位置,如 10% 表示 Left 为视频宽度的 10%</li>
/// <li>当字符串以 px 结尾,表示水印 Left 为视频宽度指定像素的位置,如 100px 表示 Left 为 100 像素。</li>
/// </summary>
[JsonProperty("XPos")]
public string XPos{ get; set; }
/// <summary>
/// 水印图片原点距离视频图像原点的垂直位置。
/// <li>当字符串以 % 结尾,表示水印 Top 为视频高度指定百分比的位置,如 10% 表示 Top 为视频高度的 10%</li>
/// <li>当字符串以 px 结尾,表示水印 Top 为视频高度指定像素的位置,如 100px 表示 Top 为 100 像素。</li>
/// </summary>
[JsonProperty("YPos")]
public string YPos{ get; set; }
/// <summary>
/// 图片水印模板,仅当 Type 为 image该字段有效。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ImageTemplate")]
public ImageWatermarkTemplate ImageTemplate{ get; set; }
/// <summary>
/// 文字水印模板,仅当 Type 为 text该字段有效。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("TextTemplate")]
public TextWatermarkTemplateInput TextTemplate{ get; set; }
/// <summary>
/// SVG 水印模板,当 Type 为 svg该字段有效。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("SvgTemplate")]
public SvgWatermarkInput SvgTemplate{ get; set; }
/// <summary>
/// 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
/// </summary>
[JsonProperty("CreateTime")]
public string CreateTime{ get; set; }
/// <summary>
/// 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
/// </summary>
[JsonProperty("UpdateTime")]
public string UpdateTime{ get; set; }
/// <summary>
/// 原点位置,可选值:
/// <li>topLeft表示坐标原点位于视频图像左上角水印原点为图片或文字的左上角</li>
/// <li>topRight表示坐标原点位于视频图像的右上角水印原点为图片或文字的右上角</li>
/// <li>bottomLeft表示坐标原点位于视频图像的左下角水印原点为图片或文字的左下角</li>
/// <li>bottomRight表示坐标原点位于视频图像的右下角水印原点为图片或文字的右下。</li>
/// </summary>
[JsonProperty("CoordinateOrigin")]
public string CoordinateOrigin{ 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 + "Definition", this.Definition);
this.SetParamSimple(map, prefix + "Type", this.Type);
this.SetParamSimple(map, prefix + "Name", this.Name);
this.SetParamSimple(map, prefix + "Comment", this.Comment);
this.SetParamSimple(map, prefix + "XPos", this.XPos);
this.SetParamSimple(map, prefix + "YPos", this.YPos);
this.SetParamObj(map, prefix + "ImageTemplate.", this.ImageTemplate);
this.SetParamObj(map, prefix + "TextTemplate.", this.TextTemplate);
this.SetParamObj(map, prefix + "SvgTemplate.", this.SvgTemplate);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.SetParamSimple(map, prefix + "CoordinateOrigin", this.CoordinateOrigin);
}
}
}