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

namespace Hotline.Share.Dtos.CallNative
{
    /// <summary>
    /// 新增
    /// </summary>
    public class AddBlackPhoneDto
    {
        /// <summary>
        /// 黑名单号码
        /// </summary>
        public string PhoneNum { get; set; }

        /// <summary>
        /// 有效期
        /// </summary>
        public DateTime? ValidDateTime { get; set; }

    }

    /// <summary>
    /// 黑名单
    /// </summary>
    public class BlackPhoneListDto
    {
        /// <summary>
        /// 黑名单号码ID
        /// </summary>
        public int BlackPhoneId { get; set; }

        /// <summary>
        /// 黑名单号码起始号段
        /// </summary>
        public string? StartPhone { get; set; }

        /// <summary>
        /// 有效期
        /// </summary>
        public DateTime? ValidDateTime { get; set; }

        /// <summary>
        /// 是否生效(0:不生效，1：生效)
        /// </summary>
        public int? Enabled { get; set; }

        public string? EnabledText => Enabled == 1 ? "有效" : "无效";

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
    }

    /// <summary>
    /// 白名单
    /// </summary>
    public class WhitePhoneListDto
    {
        /// <summary>
        /// 号码ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 号码
        /// </summary>
        public string? StartPhone { get; set; }

        /// <summary>
        /// 有效期
        /// </summary>
        public DateTime? ValidDateTime { get; set; }

        /// <summary>
        /// 是否生效(0:不生效，1：生效)
        /// </summary>
        public int? Enabled { get; set; }
        public string? EnabledText => Enabled == 1 ? "有效" : "无效";
    }
}
