using System;

namespace NPP.SmartSchedue.Api.Contracts.Services.Notification.Output;

/// <summary>
/// 邮件服务器状态输出
/// </summary>
public class EmailServerStatusOutput
{
    /// <summary>
    /// 服务器是否可用
    /// </summary>
    public bool IsAvailable { get; set; }

    /// <summary>
    /// SMTP服务器地址
    /// </summary>
    public string SmtpServer { get; set; } = "";

    /// <summary>
    /// SMTP端口
    /// </summary>
    public int SmtpPort { get; set; }

    /// <summary>
    /// 检查时间
    /// </summary>
    public DateTime CheckTime { get; set; } = DateTime.Now;

    /// <summary>
    /// 响应时间（毫秒）
    /// </summary>
    public int ResponseTimeMs { get; set; }

    /// <summary>
    /// 错误消息
    /// </summary>
    public string? ErrorMessage { get; set; }
}