server-master/srcs/WingsAPI.Communication/Services/Messages/ServiceMaintenanceNotificationMessage.cs
2026-02-10 18:21:30 +01:00

24 lines
No EOL
633 B
C#

using System;
using PhoenixLib.ServiceBus;
using PhoenixLib.ServiceBus.Routing;
namespace WingsAPI.Communication.Services.Messages
{
[MessageType("service.notify.maintenance")]
public class ServiceMaintenanceNotificationMessage : IMessage
{
public ServiceMaintenanceNotificationType NotificationType { get; init; }
public string Reason { get; init; }
public TimeSpan TimeLeft { get; init; }
}
public enum ServiceMaintenanceNotificationType
{
Rescheduled,
ScheduleStopped,
ScheduleWarning,
Executed,
EmergencyExecuted,
Lifted
}
}