Files
Radicade/Server/Notifications/AnnouncementBroadcast.cs
2026-10-16 23:33:13 -07:00

19 lines
491 B
C#

namespace RadicadeServer.RecNet.Notifications
{
public static class AnnouncementBroadcast
{
public const string UpdateNotificationId = "AnnouncementUpdate";
public static Notification Update(Announcement announcement)
=> new() { Id = UpdateNotificationId, Msg = announcement };
public const string DeleteNotificationId = "AnnouncementDelete";
public static Notification Delete(Announcement announcement)
=> new() { Id = DeleteNotificationId, Msg = announcement };
}
}