mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-13 22:43:35 +01:00
26 lines
665 B
C#
26 lines
665 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using NzbDrone.Core.Annotations;
|
|||
|
|
|||
|
namespace NzbDrone.Core.Notifications.Prowl
|
|||
|
{
|
|||
|
public class ProwlSettings : INotifcationSettings
|
|||
|
{
|
|||
|
[FieldDefinition(0, Label = "API Key", HelpText = "API Key for Prowl")]
|
|||
|
public String ApiKey { get; set; }
|
|||
|
|
|||
|
[FieldDefinition(1, Label = "Priority", HelpText = "Priority to send messages at")]
|
|||
|
public Int32 Priority { get; set; }
|
|||
|
|
|||
|
public bool IsValid
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return !string.IsNullOrWhiteSpace(ApiKey) && Priority > 0;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|