using System.Text.Json.Serialization;

namespace XPrintServer.Api.Entities.Vol
{
    public class LogoInfo
    {
        public LogoInfo() { }

        [JsonPropertyName("add_logo")]
        /// <summary>
        /// 是否添加水印
        /// </summary>
        /// <remarks>
        /// True为添加，False不添加。默认不添加
        /// </remarks>
        public bool AddLogo { get; set; } = false;

        [JsonPropertyName("position")]
        /// <summary>
        /// 水印的位置
        /// </summary>
        /// <remarks>
        /// 0-右下角
        /// 1-左下角
        /// 2-左上角
        /// 3-右上角
        /// 默认0
        /// </remarks>
        public int Position { get; set; } = 0;

        [JsonPropertyName("language")]
        /// <summary>
        /// 水印的语言
        /// </summary>
        /// <remarks>
        /// 0-中文（AI生成）
        /// 1-英文（Generated by AI）
        /// 默认0
        /// </remarks>
        public int Language { get; set; } = 0;

        [JsonPropertyName("opacity")]
        /// <summary>
        /// 水印的不透明度
        /// </summary>
        /// <remarks>
        /// 取值范围0-1，1表示完全不透明，默认0.3
        /// </remarks>
        public float Opacity { get; set; } = 0.3f;

        [JsonPropertyName("logo_text_content")]
        /// <summary>
        /// 明水印自定义内容
        /// </summary>
        public string LogoTextContent { get; set; } = null!;
    }
}
