Rename TBaseObject -> GlobalBase

Remove Notification and Library Connectors from GlobalBase
This commit is contained in:
2023-08-01 18:24:19 +02:00
parent c45e4ddf90
commit e4086a8892
14 changed files with 66 additions and 86 deletions

View File

@ -11,7 +11,7 @@ public class Gotify : NotificationConnector
private readonly HttpClient _client = new();
[JsonConstructor]
public Gotify(string endpoint, string appToken, TBaseObject clone) : base(NotificationManagerType.Gotify, clone)
public Gotify(string endpoint, string appToken, GlobalBase clone) : base(NotificationManagerType.Gotify, clone)
{
this.endpoint = endpoint;
this.appToken = appToken;

View File

@ -10,7 +10,7 @@ public class LunaSea : NotificationConnector
private readonly HttpClient _client = new();
[JsonConstructor]
public LunaSea(string id, TBaseObject clone) : base(NotificationManagerType.LunaSea, clone)
public LunaSea(string id, GlobalBase clone) : base(NotificationManagerType.LunaSea, clone)
{
this.id = id;
}

View File

@ -1,10 +1,10 @@
namespace Tranga.NotificationConnectors;
public abstract class NotificationConnector : TBaseObject
public abstract class NotificationConnector : GlobalBase
{
public NotificationManagerType notificationManagerType;
protected NotificationConnector(NotificationManagerType notificationManagerType, TBaseObject clone) : base(clone)
protected NotificationConnector(NotificationManagerType notificationManagerType, GlobalBase clone) : base(clone)
{
this.notificationManagerType = notificationManagerType;
}