Corrected order of constructor (GlobalBase clone)

This commit is contained in:
2023-08-27 00:59:54 +02:00
parent a8f0f1af15
commit f916cda0f1
7 changed files with 11 additions and 11 deletions

View File

@ -11,7 +11,7 @@ public class Gotify : NotificationConnector
private readonly HttpClient _client = new();
[JsonConstructor]
public Gotify(string endpoint, string appToken, GlobalBase clone) : base(NotificationManagerType.Gotify, clone)
public Gotify(GlobalBase clone, string endpoint, string appToken) : base(clone, NotificationManagerType.Gotify)
{
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, GlobalBase clone) : base(NotificationManagerType.LunaSea, clone)
public LunaSea(GlobalBase clone, string id) : base(clone, NotificationManagerType.LunaSea)
{
this.id = id;
}

View File

@ -4,7 +4,7 @@ public abstract class NotificationConnector : GlobalBase
{
public NotificationManagerType notificationManagerType;
protected NotificationConnector(NotificationManagerType notificationManagerType, GlobalBase clone) : base(clone)
protected NotificationConnector(GlobalBase clone, NotificationManagerType notificationManagerType) : base(clone)
{
this.notificationManagerType = notificationManagerType;
}