using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Hotline.Share.Dtos.CallNative
{
///
/// 新增
///
public class AddBlackPhoneDto
{
///
/// 黑名单号码
///
public string PhoneNum { get; set; }
///
/// 有效期
///
public DateTime? ValidDateTime { get; set; }
}
///
/// 黑名单
///
public class BlackPhoneListDto
{
///
/// 黑名单号码ID
///
public int BlackPhoneId { get; set; }
///
/// 黑名单号码起始号段
///
public string? StartPhone { get; set; }
///
/// 有效期
///
public DateTime? ValidDateTime { get; set; }
///
/// 是否生效(0:不生效,1:生效)
///
public int? Enabled { get; set; }
public string? EnabledText => Enabled == 1 ? "有效" : "无效";
///
/// 创建时间
///
public DateTime? CreateDate { get; set; }
}
///
/// 白名单
///
public class WhitePhoneListDto
{
///
/// 号码ID
///
public int Id { get; set; }
///
/// 号码
///
public string? Phone { get; set; }
///
/// 有效期
///
public DateTime? ValidDateTime { get; set; }
///
/// 是否生效(0:不生效,1:生效)
///
public int? Enabled { get; set; }
public string? EnabledText => Enabled == 1 ? "有效" : "无效";
}
}