Website: Added connector NotificationManager LunaSea

Added Update Method for TrangaSettings for LunaSea
#21
This commit is contained in:
2023-06-15 18:57:21 +02:00
parent c6c8f5cdf6
commit 02a382a99a
5 changed files with 32 additions and 3 deletions

View File

@ -70,8 +70,14 @@ public class TrangaSettings
notificationManagers.RemoveWhere(nm => nm.GetType() == typeof(Gotify));
notificationManagers.Add(new Gotify(values[0], values[1], logger));
break;
case UpdateField.LunaSea:
if(values.Length != 1)
return;
notificationManagers.RemoveWhere(nm => nm.GetType() == typeof(LunaSea));
notificationManagers.Add(new LunaSea(values[0], logger));
break;
}
}
public enum UpdateField { DownloadLocation, Komga, Kavita, Gotify}
public enum UpdateField { DownloadLocation, Komga, Kavita, Gotify, LunaSea}
}