Added the code to get the quality profiles from Sonarr

Started plugging that into the UI
This commit is contained in:
Jamie Rees 2016-03-10 22:24:37 +00:00
commit 640e76e167
10 changed files with 266 additions and 10 deletions

View file

@ -24,6 +24,11 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
using System;
using Newtonsoft.Json;
using PlexRequests.Helpers;
namespace PlexRequests.Core.SettingModels
{
public class SonarrSettings : Settings
@ -31,6 +36,16 @@ namespace PlexRequests.Core.SettingModels
public string Ip { get; set; }
public int Port { get; set; }
public string ApiKey { get; set; }
public bool Enabled { get; set; }
public string QualityProfile { get; set; }
[JsonIgnore]
public Uri FullUri
{
get
{
var formatted = Ip.ReturnUri(Port);
return formatted;
}
}
}
}