Added successmessage to NotificationManager
This commit is contained in:
parent
02a382a99a
commit
c11e3993ea
@ -68,13 +68,17 @@ public class TrangaSettings
|
|||||||
if (values.Length != 2)
|
if (values.Length != 2)
|
||||||
return;
|
return;
|
||||||
notificationManagers.RemoveWhere(nm => nm.GetType() == typeof(Gotify));
|
notificationManagers.RemoveWhere(nm => nm.GetType() == typeof(Gotify));
|
||||||
notificationManagers.Add(new Gotify(values[0], values[1], logger));
|
Gotify newGotify = new(values[0], values[1], logger);
|
||||||
|
notificationManagers.Add(newGotify);
|
||||||
|
newGotify.SendNotification("Success!", "Gotify was added to Tranga!");
|
||||||
break;
|
break;
|
||||||
case UpdateField.LunaSea:
|
case UpdateField.LunaSea:
|
||||||
if(values.Length != 1)
|
if(values.Length != 1)
|
||||||
return;
|
return;
|
||||||
notificationManagers.RemoveWhere(nm => nm.GetType() == typeof(LunaSea));
|
notificationManagers.RemoveWhere(nm => nm.GetType() == typeof(LunaSea));
|
||||||
notificationManagers.Add(new LunaSea(values[0], logger));
|
LunaSea newLunaSea = new(values[0], logger);
|
||||||
|
notificationManagers.Add(newLunaSea);
|
||||||
|
newLunaSea.SendNotification("Success!", "LunaSea was added to Tranga!");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user