mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Notifications wired up server sided
This commit is contained in:
parent
3f44339381
commit
e9bf78a97d
57 changed files with 977 additions and 951 deletions
40
NzbDrone.Core/Notifications/Xbmc/XbmcSettings.cs
Normal file
40
NzbDrone.Core/Notifications/Xbmc/XbmcSettings.cs
Normal file
|
@ -0,0 +1,40 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using NzbDrone.Core.Annotations;
|
||||
|
||||
namespace NzbDrone.Core.Notifications.Xbmc
|
||||
{
|
||||
public class XbmcSettings : INotifcationSettings
|
||||
{
|
||||
[FieldDefinition(0, Label = "Host", HelpText = "XBMC Hostnname or IP")]
|
||||
public String Host { get; set; }
|
||||
|
||||
[FieldDefinition(1, Label = "Port", HelpText = "Webserver port")]
|
||||
public Int32 Port { get; set; }
|
||||
|
||||
[FieldDefinition(2, Label = "Username", HelpText = "Webserver Username")]
|
||||
public String Username { get; set; }
|
||||
|
||||
[FieldDefinition(3, Label = "Password", HelpText = "Webserver Password ")]
|
||||
public String Password { get; set; }
|
||||
|
||||
[FieldDefinition(4, Label = "Update Library", HelpText = "Update Library on Download & Rename?")]
|
||||
public Boolean UpdateLibrary { get; set; }
|
||||
|
||||
[FieldDefinition(5, Label = "Update Library", HelpText = "Clean Library after update?")]
|
||||
public Boolean CleanLibrary { get; set; }
|
||||
|
||||
[FieldDefinition(6, Label = "Always Update", HelpText = "Update Library even when a video is playing?")]
|
||||
public Boolean AlwaysUpdate { get; set; }
|
||||
|
||||
public bool IsValid
|
||||
{
|
||||
get
|
||||
{
|
||||
return !string.IsNullOrWhiteSpace(Host) && Port > 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue