using System;
using System.Collections.Generic;
using NPP.SmartSchedue.Api.Contracts.Core.Enums;
namespace NPP.SmartSchedue.Api.Contracts.Services.Notification.Output;
///
/// 发送通知输出
///
public class SendNotificationOutput
{
#region 总体结果
///
/// 是否全部发送成功
///
public bool IsAllSuccess { get; set; } = true;
///
/// 总共发送数量
///
public int TotalCount { get; set; } = 0;
///
/// 成功发送数量
///
public int SuccessCount { get; set; } = 0;
///
/// 失败发送数量
///
public int FailedCount { get; set; } = 0;
///
/// 总体错误信息
///
public string OverallErrorMessage { get; set; } = "";
#endregion
#region 详细结果
///
/// 每个接收人的发送结果详情
///
public List SendResults { get; set; } = new List();
#endregion
#region 批量任务信息
///
/// 创建的通知历史记录ID列表
///
public List NotificationHistoryIds { get; set; } = new List();
///
/// 发送时间
///
public DateTime SendTime { get; set; } = DateTime.Now;
#endregion
}
///
/// 单个通知发送结果
///
public class NotificationSendResult
{
///
/// 接收人员ID
///
public long RecipientPersonnelId { get; set; }
///
/// 接收人员姓名
///
public string RecipientPersonnelName { get; set; } = "";
///
/// 接收人员邮箱
///
public string RecipientEmail { get; set; } = "";
///
/// 通知方式
///
public NotificationTypeEnum NotificationType { get; set; }
///
/// 发送状态
///
public NotificationStatusEnum SendStatus { get; set; } = NotificationStatusEnum.Pending;
///
/// 发送结果信息
///
public string SendResult { get; set; } = "";
///
/// 错误信息
///
public string ErrorMessage { get; set; } = "";
///
/// 通知历史记录ID
///
public long NotificationHistoryId { get; set; }
///
/// 发送时间
///
public DateTime? SendTime { get; set; }
}