19 lines
545 B
C#
19 lines
545 B
C#
namespace SPMS.Domain.Enums;
|
|
|
|
/// <summary>
|
|
/// 메시지 발송 상태 판정 규칙 (PRD FR-MSG-006)
|
|
/// 목록/상세/통계 API에서 동일 규칙을 적용해야 함
|
|
/// </summary>
|
|
public static class SendStatus
|
|
{
|
|
public const string Pending = "pending";
|
|
public const string Complete = "complete";
|
|
public const string Failed = "failed";
|
|
|
|
public static string Determine(int totalSendCount, int successCount)
|
|
{
|
|
if (totalSendCount == 0) return Pending;
|
|
return successCount > 0 ? Complete : Failed;
|
|
}
|
|
}
|