mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-21 00:05:26 +03:00
add new notification options
This commit is contained in:
@@ -225,6 +225,8 @@ namespace MediaBrowser.Model.Configuration
|
||||
|
||||
public double DownMixAudioBoost { get; set; }
|
||||
|
||||
public NotificationOptions NotificationOptions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
|
||||
/// </summary>
|
||||
@@ -288,6 +290,8 @@ namespace MediaBrowser.Model.Configuration
|
||||
DlnaOptions = new DlnaOptions();
|
||||
|
||||
UICulture = "en-us";
|
||||
|
||||
NotificationOptions = new NotificationOptions();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -315,4 +319,20 @@ namespace MediaBrowser.Model.Configuration
|
||||
public string From { get; set; }
|
||||
public string To { get; set; }
|
||||
}
|
||||
|
||||
public class NotificationOptions
|
||||
{
|
||||
public bool SendOnUpdates { get; set; }
|
||||
public bool SendOnPlayback { get; set; }
|
||||
public bool SendOnFailedTasks { get; set; }
|
||||
public bool SendOnNewLibraryContent { get; set; }
|
||||
|
||||
public NotificationOptions()
|
||||
{
|
||||
SendOnUpdates = true;
|
||||
SendOnPlayback = true;
|
||||
SendOnFailedTasks = true;
|
||||
SendOnNewLibraryContent = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user