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; }
|
|
|
|
|
|
2011-07-09 20:19:33 +02:00
|
|
|
|
[DisplayName("Update on Download and Rename")]
|
|
|
|
|
[Description("Update XBMC library after episode is downloaded or renamed?")]
|
|
|
|
|
public bool XbmcUpdateLibrary { get; set; }
|
2011-03-07 08:32:36 +01:00
|
|
|
|
|
2011-07-09 20:19:33 +02:00
|
|
|
|
[DisplayName("Clean on Download/Rename")]
|
|
|
|
|
[Description("Clean XBMC library after an episode is downloaded or renamed?")]
|
|
|
|
|
public bool XbmcCleanLibrary { get; set; }
|
2011-03-07 08:32:36 +01:00
|
|
|
|
|
|
|
|
|
[DataType(DataType.Text)]
|
|
|
|
|
[DisplayName("Hosts")]
|
2011-07-09 20:19:33 +02:00
|
|
|
|
[Description("XBMC hosts with port, comma separated")]
|
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; }
|
|
|
|
|
}
|
|
|
|
|
}
|