add new notification options

This commit is contained in:
Luke Pulverenti
2014-04-25 16:47:56 -04:00
parent 547291f048
commit 42145c86e8
5 changed files with 45 additions and 2 deletions

View File

@@ -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;
}
}
}