using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace XYY.Api.WarningNotice.WarningNoticeService
{
    /// <summary>
    /// 警告通知对象
    /// </summary>
    public class WarningNoticeTarget
    {
        /// <summary>
        /// 对象名
        /// </summary>
        public string TargetName
        {
            get; set;
        }

        /// <summary>
        /// 服务类型
        /// </summary>
        public string ServiceType
        {
            get; set;
        }
    }

    public class TextMessageNoticeTarget : WarningNoticeTarget
    {
        public string Content
        {
            get; set;
        }

        public string[] UserId
        {
            get; set;
        }

        public string[] CustomerId
        {
            get; set;
        }

    }

    public class LinkMessageNoticeTarget : WarningNoticeTarget
    {
        public string Link { get; set; }
        public string PicUrl { get; set; }
        public string Title { get; set; }
        public string Text { get; set; }
        public bool ToAllUser { get; set; }
        public List<string> UserIds { get; set; }
    }

    public class ActionCardNoticeTarget : WarningNoticeTarget
    {
        /// <summary>
        /// 按钮布局，0是竖向，1是横向
        /// </summary>
        public string ButtonOrient { get; set; }
        public List<ActionCardButton> Buttons { get; set; }
        public string Text { get; set; }
        public string Title { get; set; }
        public bool ToAllUser { get; set; }
        public List<int> UserIds { get; set; }
    }

    public class ActionCardButton
    {
        public string Text { get; set; }
        public string Link { get; set; }
    }
}
