mirror of
https://github.com/C9Glax/tranga.git
synced 2025-03-14 09:03:02 +01:00
16 lines
649 B
C#
16 lines
649 B
C#
namespace Tranga.NotificationConnectors;
|
|
|
|
public abstract class NotificationConnector : GlobalBase
|
|
{
|
|
public readonly NotificationConnectorType notificationConnectorType;
|
|
|
|
protected NotificationConnector(GlobalBase clone, NotificationConnectorType notificationConnectorType) : base(clone)
|
|
{
|
|
Log($"Creating notificationConnector {Enum.GetName(notificationConnectorType)}");
|
|
this.notificationConnectorType = notificationConnectorType;
|
|
}
|
|
|
|
public enum NotificationConnectorType : byte { Gotify = 0, LunaSea = 1, Ntfy = 2 }
|
|
|
|
public abstract void SendNotification(string title, string notificationText);
|
|
} |