2011-04-10 04:44:01 +02:00
|
|
|
|
using System.ComponentModel;
|
2011-03-07 08:32:36 +01:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Web.Models
|
|
|
|
|
{
|
|
|
|
|
public class NotificationSettingsModel
|
|
|
|
|
{
|
|
|
|
|
[DisplayName("Enabled")]
|
2011-07-01 22:33:03 +02:00
|
|
|
|
[Description("Enable notifications for XBMC?")]
|
2011-03-07 08:32:36 +01:00
|
|
|
|
public bool XbmcEnabled { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Notify on Grab")]
|
2011-07-01 22:33:03 +02:00
|
|
|
|
[Description("Send notification when episode is sent to SABnzbd?")]
|
2011-03-07 08:32:36 +01:00
|
|
|
|
public bool XbmcNotifyOnGrab { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Notify on Download")]
|
2011-07-01 22:33:03 +02:00
|
|
|
|
[Description("Send notification when episode is downloaded?")]
|
2011-03-07 08:32:36 +01:00
|
|
|
|
public bool XbmcNotifyOnDownload { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Notify on Rename")]
|
2011-07-01 22:33:03 +02:00
|
|
|
|
[Description("Send notification when episode is renamed?")]
|
2011-03-07 08:32:36 +01:00
|
|
|
|
public bool XbmcNotifyOnRename { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Image with Notification")]
|
2011-07-01 22:33:03 +02:00
|
|
|
|
[Description("Display NzbDrone image on notifications?")]
|
2011-03-07 08:32:36 +01:00
|
|
|
|
public bool XbmcNotificationImage { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
[Range(3, 10, ErrorMessage = "Must be between 3 and 10 seconds")]
|
|
|
|
|
[DisplayName("Display Time")]
|
2011-07-01 22:33:03 +02:00
|
|
|
|
[Description("How long the notification should be displayed")]
|
2011-03-07 08:32:36 +01:00
|
|
|
|
public int XbmcDisplayTime { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Update on Download")]
|
2011-07-01 22:33:03 +02:00
|
|
|
|
[Description("Update XBMC library after episode download?")]
|
2011-03-07 08:32:36 +01:00
|
|
|
|
public bool XbmcUpdateOnDownload { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Update on Rename")]
|
2011-07-01 22:33:03 +02:00
|
|
|
|
[Description("Update XBMC library after episode is renamed?")]
|
2011-03-07 08:32:36 +01:00
|
|
|
|
public bool XbmcUpdateOnRename { get; set; }
|
|
|
|
|
|
2011-07-01 22:33:03 +02:00
|
|
|
|
[DisplayName("Full Update")]
|
|
|
|
|
[Description("Perform a full update is series update fails?")]
|
2011-03-07 08:32:36 +01:00
|
|
|
|
public bool XbmcFullUpdate { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Clean on Download")]
|
2011-07-01 22:33:03 +02:00
|
|
|
|
[Description("Clean XBMC library after episode download?")]
|
2011-03-07 08:32:36 +01:00
|
|
|
|
public bool XbmcCleanOnDownload { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Clean on Rename")]
|
2011-07-01 22:33:03 +02:00
|
|
|
|
[Description("Clean XBMC library after episode is renamed?")]
|
2011-03-07 08:32:36 +01:00
|
|
|
|
public bool XbmcCleanOnRename { get; set; }
|
|
|
|
|
|
|
|
|
|
[DataType(DataType.Text)]
|
|
|
|
|
[DisplayName("Hosts")]
|
2011-07-01 22:33:03 +02:00
|
|
|
|
[Description("XBMC hosts with port, comma separ")]
|
2011-03-07 08:32:36 +01:00
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
|
|
|
|
public string XbmcHosts { get; set; }
|
|
|
|
|
|
|
|
|
|
[DataType(DataType.Text)]
|
|
|
|
|
[DisplayName("Username")]
|
2011-07-01 22:33:03 +02:00
|
|
|
|
[Description("XBMC webserver username")]
|
2011-03-07 08:32:36 +01:00
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
|
|
|
|
public string XbmcUsername { get; set; }
|
|
|
|
|
|
|
|
|
|
[DataType(DataType.Text)]
|
|
|
|
|
[DisplayName("Password")]
|
2011-07-01 22:33:03 +02:00
|
|
|
|
[Description("XBMC webserver password")]
|
2011-03-07 08:32:36 +01:00
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
|
|
|
|
public string XbmcPassword { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|