Initial Commit
continuous-integration/drone/push Build is failing Details
continuous-integration/drone Build is failing Details

master
Xander Sigler 3 years ago
commit 46e403f880

@ -0,0 +1,29 @@
kind: pipeline
type: docker
name: RadarrSharp
environment:
BUILD_NUM_SINCE_LAST_MINOR_VERSION: 15
steps:
- name: init
image: busybox
commands:
- echo 'Starting build pipeline for RadarrSharp'
- echo Drone build number is ${DRONE_BUILD_NUMBER}
- echo Revision is $((${DRONE_BUILD_NUMBER}-$BUILD_NUM_SINCE_LAST_MINOR_VERSION))
- name: nuget-publish
image: mcr.microsoft.com/dotnet/sdk:5.0
environment:
NUGET_API_KEY:
from_secret: Nuget_Api_key
commands:
- dotnet build
- dotnet pack -p:Version=1.0.$((${DRONE_BUILD_NUMBER}-$BUILD_NUM_SINCE_LAST_MINOR_VERSION)) -o .
- dotnet nuget push *.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json
- name: finish
image: busybox
commands:
- echo 'Finished deployment for RadarrSharp'

3
.gitignore vendored

@ -0,0 +1,3 @@
.vs/
bin/
obj/

@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
namespace RadarrSharp.Helpers
{
public static class RadarrExtensions
{
public static Tuple<string,string> ToTuple(this object value, string key)
{
if (value == null)
return null;
return new Tuple<string, string>(key, value.ToString());
}
public static List<Tuple<string,string>> ToList(this Tuple<string, string> tuple)
{
if (tuple == null)
return null;
return new List<Tuple<string, string>>() { tuple };
}
public static List<Tuple<string, string>> ParamList(params Tuple<string,string>[] tuples)
{
if (tuples == null)
return null;
var combinedTuples = new List<Tuple<string, string>>();
foreach (var p in tuples)
{
combinedTuples.Add(p);
}
return combinedTuples;
}
}
}

@ -0,0 +1,116 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class Blocklist {
/// <summary>
/// Gets or Sets MovieId
/// </summary>
[DataMember(Name="movieId", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "movieId")]
public decimal? MovieId { get; set; }
/// <summary>
/// Gets or Sets SourceTitle
/// </summary>
[DataMember(Name="sourceTitle", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "sourceTitle")]
public string SourceTitle { get; set; }
/// <summary>
/// Gets or Sets Languages
/// </summary>
[DataMember(Name="languages", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "languages")]
public List<HistoryLanguages> Languages { get; set; }
/// <summary>
/// Gets or Sets Quality
/// </summary>
[DataMember(Name="quality", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "quality")]
public Quality Quality { get; set; }
/// <summary>
/// Gets or Sets CustomFormats
/// </summary>
[DataMember(Name="customFormats", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "customFormats")]
public List<CustomFormat> CustomFormats { get; set; }
/// <summary>
/// Gets or Sets Date
/// </summary>
[DataMember(Name="date", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "date")]
public string Date { get; set; }
/// <summary>
/// Gets or Sets Protocol
/// </summary>
[DataMember(Name="protocol", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "protocol")]
public string Protocol { get; set; }
/// <summary>
/// Gets or Sets Indexer
/// </summary>
[DataMember(Name="indexer", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "indexer")]
public string Indexer { get; set; }
/// <summary>
/// Gets or Sets Message
/// </summary>
[DataMember(Name="message", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "message")]
public string Message { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public decimal? Id { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class Blocklist {\n");
sb.Append(" MovieId: ").Append(MovieId).Append("\n");
sb.Append(" SourceTitle: ").Append(SourceTitle).Append("\n");
sb.Append(" Languages: ").Append(Languages).Append("\n");
sb.Append(" Quality: ").Append(Quality).Append("\n");
sb.Append(" CustomFormats: ").Append(CustomFormats).Append("\n");
sb.Append(" Date: ").Append(Date).Append("\n");
sb.Append(" Protocol: ").Append(Protocol).Append("\n");
sb.Append(" Indexer: ").Append(Indexer).Append("\n");
sb.Append(" Message: ").Append(Message).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,45 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class BlocklistBulkBody {
/// <summary>
/// Database ids of the blocklist items to delete
/// </summary>
/// <value>Database ids of the blocklist items to delete</value>
[DataMember(Name="ids", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "ids")]
public List<int?> Ids { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class BlocklistBulkBody {\n");
sb.Append(" Ids: ").Append(Ids).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,60 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class Collection {
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name="name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
/// <summary>
/// Gets or Sets TmdbId
/// </summary>
[DataMember(Name="tmdbId", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "tmdbId")]
public int? TmdbId { get; set; }
/// <summary>
/// Gets or Sets Images
/// </summary>
[DataMember(Name="images", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "images")]
public List<Image> Images { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class Collection {\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" TmdbId: ").Append(TmdbId).Append("\n");
sb.Append(" Images: ").Append(Images).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,292 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class ConfigHostBody {
/// <summary>
/// Gets or Sets BindAddress
/// </summary>
[DataMember(Name="bindAddress", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "bindAddress")]
public string BindAddress { get; set; }
/// <summary>
/// Gets or Sets Port
/// </summary>
[DataMember(Name="port", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "port")]
public decimal? Port { get; set; }
/// <summary>
/// Gets or Sets SslPort
/// </summary>
[DataMember(Name="sslPort", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "sslPort")]
public decimal? SslPort { get; set; }
/// <summary>
/// Gets or Sets EnableSsl
/// </summary>
[DataMember(Name="enableSsl", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "enableSsl")]
public bool? EnableSsl { get; set; }
/// <summary>
/// Gets or Sets LaunchBrowser
/// </summary>
[DataMember(Name="launchBrowser", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "launchBrowser")]
public bool? LaunchBrowser { get; set; }
/// <summary>
/// Gets or Sets AuthenticationMethod
/// </summary>
[DataMember(Name="authenticationMethod", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "authenticationMethod")]
public string AuthenticationMethod { get; set; }
/// <summary>
/// Gets or Sets AnalyticsEnabled
/// </summary>
[DataMember(Name="analyticsEnabled", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "analyticsEnabled")]
public bool? AnalyticsEnabled { get; set; }
/// <summary>
/// Gets or Sets Username
/// </summary>
[DataMember(Name="username", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "username")]
public string Username { get; set; }
/// <summary>
/// Gets or Sets Password
/// </summary>
[DataMember(Name="password", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "password")]
public string Password { get; set; }
/// <summary>
/// Gets or Sets LogLevel
/// </summary>
[DataMember(Name="logLevel", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "logLevel")]
public string LogLevel { get; set; }
/// <summary>
/// Gets or Sets ConsoleLogLevel
/// </summary>
[DataMember(Name="consoleLogLevel", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "consoleLogLevel")]
public string ConsoleLogLevel { get; set; }
/// <summary>
/// Gets or Sets Branch
/// </summary>
[DataMember(Name="branch", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "branch")]
public string Branch { get; set; }
/// <summary>
/// Gets or Sets ApiKey
/// </summary>
[DataMember(Name="apiKey", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "apiKey")]
public string ApiKey { get; set; }
/// <summary>
/// Gets or Sets SslCertPath
/// </summary>
[DataMember(Name="sslCertPath", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "sslCertPath")]
public string SslCertPath { get; set; }
/// <summary>
/// Gets or Sets SslCertPassword
/// </summary>
[DataMember(Name="sslCertPassword", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "sslCertPassword")]
public string SslCertPassword { get; set; }
/// <summary>
/// Gets or Sets UrlBase
/// </summary>
[DataMember(Name="urlBase", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "urlBase")]
public string UrlBase { get; set; }
/// <summary>
/// Gets or Sets UpdateAutomatically
/// </summary>
[DataMember(Name="updateAutomatically", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "updateAutomatically")]
public bool? UpdateAutomatically { get; set; }
/// <summary>
/// Gets or Sets UpdateMechanism
/// </summary>
[DataMember(Name="updateMechanism", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "updateMechanism")]
public string UpdateMechanism { get; set; }
/// <summary>
/// Gets or Sets UpdateScriptPath
/// </summary>
[DataMember(Name="updateScriptPath", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "updateScriptPath")]
public string UpdateScriptPath { get; set; }
/// <summary>
/// Gets or Sets ProxyEnabled
/// </summary>
[DataMember(Name="proxyEnabled", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "proxyEnabled")]
public bool? ProxyEnabled { get; set; }
/// <summary>
/// Gets or Sets ProxyType
/// </summary>
[DataMember(Name="proxyType", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "proxyType")]
public string ProxyType { get; set; }
/// <summary>
/// Gets or Sets ProxyHostname
/// </summary>
[DataMember(Name="proxyHostname", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "proxyHostname")]
public string ProxyHostname { get; set; }
/// <summary>
/// Gets or Sets ProxyPort
/// </summary>
[DataMember(Name="proxyPort", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "proxyPort")]
public decimal? ProxyPort { get; set; }
/// <summary>
/// Gets or Sets ProxyUsername
/// </summary>
[DataMember(Name="proxyUsername", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "proxyUsername")]
public string ProxyUsername { get; set; }
/// <summary>
/// Gets or Sets ProxyPassword
/// </summary>
[DataMember(Name="proxyPassword", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "proxyPassword")]
public string ProxyPassword { get; set; }
/// <summary>
/// Gets or Sets ProxyBypassFilter
/// </summary>
[DataMember(Name="proxyBypassFilter", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "proxyBypassFilter")]
public string ProxyBypassFilter { get; set; }
/// <summary>
/// Gets or Sets ProxyBypassLocalAddresses
/// </summary>
[DataMember(Name="proxyBypassLocalAddresses", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "proxyBypassLocalAddresses")]
public bool? ProxyBypassLocalAddresses { get; set; }
/// <summary>
/// Gets or Sets CertificateValidation
/// </summary>
[DataMember(Name="certificateValidation", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "certificateValidation")]
public string CertificateValidation { get; set; }
/// <summary>
/// Gets or Sets BackupFolder
/// </summary>
[DataMember(Name="backupFolder", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "backupFolder")]
public string BackupFolder { get; set; }
/// <summary>
/// Gets or Sets BackupInterval
/// </summary>
[DataMember(Name="backupInterval", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "backupInterval")]
public decimal? BackupInterval { get; set; }
/// <summary>
/// Gets or Sets BackupRetention
/// </summary>
[DataMember(Name="backupRetention", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "backupRetention")]
public decimal? BackupRetention { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public decimal? Id { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class ConfigHostBody {\n");
sb.Append(" BindAddress: ").Append(BindAddress).Append("\n");
sb.Append(" Port: ").Append(Port).Append("\n");
sb.Append(" SslPort: ").Append(SslPort).Append("\n");
sb.Append(" EnableSsl: ").Append(EnableSsl).Append("\n");
sb.Append(" LaunchBrowser: ").Append(LaunchBrowser).Append("\n");
sb.Append(" AuthenticationMethod: ").Append(AuthenticationMethod).Append("\n");
sb.Append(" AnalyticsEnabled: ").Append(AnalyticsEnabled).Append("\n");
sb.Append(" Username: ").Append(Username).Append("\n");
sb.Append(" Password: ").Append(Password).Append("\n");
sb.Append(" LogLevel: ").Append(LogLevel).Append("\n");
sb.Append(" ConsoleLogLevel: ").Append(ConsoleLogLevel).Append("\n");
sb.Append(" Branch: ").Append(Branch).Append("\n");
sb.Append(" ApiKey: ").Append(ApiKey).Append("\n");
sb.Append(" SslCertPath: ").Append(SslCertPath).Append("\n");
sb.Append(" SslCertPassword: ").Append(SslCertPassword).Append("\n");
sb.Append(" UrlBase: ").Append(UrlBase).Append("\n");
sb.Append(" UpdateAutomatically: ").Append(UpdateAutomatically).Append("\n");
sb.Append(" UpdateMechanism: ").Append(UpdateMechanism).Append("\n");
sb.Append(" UpdateScriptPath: ").Append(UpdateScriptPath).Append("\n");
sb.Append(" ProxyEnabled: ").Append(ProxyEnabled).Append("\n");
sb.Append(" ProxyType: ").Append(ProxyType).Append("\n");
sb.Append(" ProxyHostname: ").Append(ProxyHostname).Append("\n");
sb.Append(" ProxyPort: ").Append(ProxyPort).Append("\n");
sb.Append(" ProxyUsername: ").Append(ProxyUsername).Append("\n");
sb.Append(" ProxyPassword: ").Append(ProxyPassword).Append("\n");
sb.Append(" ProxyBypassFilter: ").Append(ProxyBypassFilter).Append("\n");
sb.Append(" ProxyBypassLocalAddresses: ").Append(ProxyBypassLocalAddresses).Append("\n");
sb.Append(" CertificateValidation: ").Append(CertificateValidation).Append("\n");
sb.Append(" BackupFolder: ").Append(BackupFolder).Append("\n");
sb.Append(" BackupInterval: ").Append(BackupInterval).Append("\n");
sb.Append(" BackupRetention: ").Append(BackupRetention).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,100 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class ConfigNamingBody {
/// <summary>
/// Gets or Sets RenameMovies
/// </summary>
[DataMember(Name="renameMovies", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "renameMovies")]
public bool? RenameMovies { get; set; }
/// <summary>
/// Gets or Sets ReplaceIllegalCharacters
/// </summary>
[DataMember(Name="replaceIllegalCharacters", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "replaceIllegalCharacters")]
public bool? ReplaceIllegalCharacters { get; set; }
/// <summary>
/// Gets or Sets ColonReplacementFormat
/// </summary>
[DataMember(Name="colonReplacementFormat", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "colonReplacementFormat")]
public string ColonReplacementFormat { get; set; }
/// <summary>
/// Gets or Sets StandardMovieFormat
/// </summary>
[DataMember(Name="standardMovieFormat", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "standardMovieFormat")]
public string StandardMovieFormat { get; set; }
/// <summary>
/// Gets or Sets MovieFolderFormat
/// </summary>
[DataMember(Name="movieFolderFormat", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "movieFolderFormat")]
public string MovieFolderFormat { get; set; }
/// <summary>
/// Gets or Sets IncludeQuality
/// </summary>
[DataMember(Name="includeQuality", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "includeQuality")]
public bool? IncludeQuality { get; set; }
/// <summary>
/// Gets or Sets ReplaceSpaces
/// </summary>
[DataMember(Name="replaceSpaces", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "replaceSpaces")]
public bool? ReplaceSpaces { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public decimal? Id { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class ConfigNamingBody {\n");
sb.Append(" RenameMovies: ").Append(RenameMovies).Append("\n");
sb.Append(" ReplaceIllegalCharacters: ").Append(ReplaceIllegalCharacters).Append("\n");
sb.Append(" ColonReplacementFormat: ").Append(ColonReplacementFormat).Append("\n");
sb.Append(" StandardMovieFormat: ").Append(StandardMovieFormat).Append("\n");
sb.Append(" MovieFolderFormat: ").Append(MovieFolderFormat).Append("\n");
sb.Append(" IncludeQuality: ").Append(IncludeQuality).Append("\n");
sb.Append(" ReplaceSpaces: ").Append(ReplaceSpaces).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,116 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class ConfigUiBody {
/// <summary>
/// Gets or Sets FirstDayOfWeek
/// </summary>
[DataMember(Name="firstDayOfWeek", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "firstDayOfWeek")]
public int? FirstDayOfWeek { get; set; }
/// <summary>
/// Gets or Sets CalendarWeekColumnHeader
/// </summary>
[DataMember(Name="calendarWeekColumnHeader", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "calendarWeekColumnHeader")]
public string CalendarWeekColumnHeader { get; set; }
/// <summary>
/// Gets or Sets MovieRuntimeFormat
/// </summary>
[DataMember(Name="movieRuntimeFormat", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "movieRuntimeFormat")]
public string MovieRuntimeFormat { get; set; }
/// <summary>
/// Gets or Sets ShortDateFormat
/// </summary>
[DataMember(Name="shortDateFormat", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "shortDateFormat")]
public string ShortDateFormat { get; set; }
/// <summary>
/// Gets or Sets LongDateFormat
/// </summary>
[DataMember(Name="longDateFormat", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "longDateFormat")]
public string LongDateFormat { get; set; }
/// <summary>
/// Gets or Sets TimeFormat
/// </summary>
[DataMember(Name="timeFormat", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "timeFormat")]
public string TimeFormat { get; set; }
/// <summary>
/// Gets or Sets ShowRelativeDates
/// </summary>
[DataMember(Name="showRelativeDates", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "showRelativeDates")]
public bool? ShowRelativeDates { get; set; }
/// <summary>
/// Gets or Sets EnableColorImpairedMode
/// </summary>
[DataMember(Name="enableColorImpairedMode", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "enableColorImpairedMode")]
public bool? EnableColorImpairedMode { get; set; }
/// <summary>
/// Gets or Sets MovieInfoLanguage
/// </summary>
[DataMember(Name="movieInfoLanguage", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "movieInfoLanguage")]
public decimal? MovieInfoLanguage { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public int? Id { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class ConfigUiBody {\n");
sb.Append(" FirstDayOfWeek: ").Append(FirstDayOfWeek).Append("\n");
sb.Append(" CalendarWeekColumnHeader: ").Append(CalendarWeekColumnHeader).Append("\n");
sb.Append(" MovieRuntimeFormat: ").Append(MovieRuntimeFormat).Append("\n");
sb.Append(" ShortDateFormat: ").Append(ShortDateFormat).Append("\n");
sb.Append(" LongDateFormat: ").Append(LongDateFormat).Append("\n");
sb.Append(" TimeFormat: ").Append(TimeFormat).Append("\n");
sb.Append(" ShowRelativeDates: ").Append(ShowRelativeDates).Append("\n");
sb.Append(" EnableColorImpairedMode: ").Append(EnableColorImpairedMode).Append("\n");
sb.Append(" MovieInfoLanguage: ").Append(MovieInfoLanguage).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,68 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class CustomFormat {
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public int? Id { get; set; }
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name="name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
/// <summary>
/// Gets or Sets IncludeCustomFormatWhenRenaming
/// </summary>
[DataMember(Name="includeCustomFormatWhenRenaming", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "includeCustomFormatWhenRenaming")]
public bool? IncludeCustomFormatWhenRenaming { get; set; }
/// <summary>
/// Gets or Sets Specifications
/// </summary>
[DataMember(Name="specifications", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "specifications")]
public List<CustomFormatSpecifications> Specifications { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class CustomFormat {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" IncludeCustomFormatWhenRenaming: ").Append(IncludeCustomFormatWhenRenaming).Append("\n");
sb.Append(" Specifications: ").Append(Specifications).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,92 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class CustomFormatSpecifications {
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name="name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
/// <summary>
/// Gets or Sets Implementation
/// </summary>
[DataMember(Name="implementation", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "implementation")]
public string Implementation { get; set; }
/// <summary>
/// Gets or Sets ImplementationName
/// </summary>
[DataMember(Name="implementationName", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "implementationName")]
public string ImplementationName { get; set; }
/// <summary>
/// Gets or Sets InfoLink
/// </summary>
[DataMember(Name="infoLink", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "infoLink")]
public string InfoLink { get; set; }
/// <summary>
/// Gets or Sets Negate
/// </summary>
[DataMember(Name="negate", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "negate")]
public bool? Negate { get; set; }
/// <summary>
/// Gets or Sets Required
/// </summary>
[DataMember(Name="required", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "required")]
public bool? Required { get; set; }
/// <summary>
/// Gets or Sets Fields
/// </summary>
[DataMember(Name="fields", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "fields")]
public List<ProviderField> Fields { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class CustomFormatSpecifications {\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" Implementation: ").Append(Implementation).Append("\n");
sb.Append(" ImplementationName: ").Append(ImplementationName).Append("\n");
sb.Append(" InfoLink: ").Append(InfoLink).Append("\n");
sb.Append(" Negate: ").Append(Negate).Append("\n");
sb.Append(" Required: ").Append(Required).Append("\n");
sb.Append(" Fields: ").Append(Fields).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,60 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class CustomfilterFilters {
/// <summary>
/// Gets or Sets Key
/// </summary>
[DataMember(Name="key", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "key")]
public string Key { get; set; }
/// <summary>
/// Gets or Sets Value
/// </summary>
[DataMember(Name="value", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "value")]
public List<string> Value { get; set; }
/// <summary>
/// Gets or Sets Type
/// </summary>
[DataMember(Name="type", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class CustomfilterFilters {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" Value: ").Append(Value).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,124 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class DownloadClient {
/// <summary>
/// Gets or Sets Enable
/// </summary>
[DataMember(Name="enable", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "enable")]
public bool? Enable { get; set; }
/// <summary>
/// Gets or Sets Protocol
/// </summary>
[DataMember(Name="protocol", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "protocol")]
public string Protocol { get; set; }
/// <summary>
/// Gets or Sets Priority
/// </summary>
[DataMember(Name="priority", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "priority")]
public int? Priority { get; set; }
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name="name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
/// <summary>
/// Gets or Sets Fields
/// </summary>
[DataMember(Name="fields", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "fields")]
public List<ProviderField> Fields { get; set; }
/// <summary>
/// Gets or Sets ImplementationName
/// </summary>
[DataMember(Name="implementationName", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "implementationName")]
public string ImplementationName { get; set; }
/// <summary>
/// Gets or Sets Implementation
/// </summary>
[DataMember(Name="implementation", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "implementation")]
public string Implementation { get; set; }
/// <summary>
/// Gets or Sets ConfigContract
/// </summary>
[DataMember(Name="configContract", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "configContract")]
public string ConfigContract { get; set; }
/// <summary>
/// Gets or Sets InfoLink
/// </summary>
[DataMember(Name="infoLink", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "infoLink")]
public string InfoLink { get; set; }
/// <summary>
/// Gets or Sets Tags
/// </summary>
[DataMember(Name="tags", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "tags")]
public List<int?> Tags { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public int? Id { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class DownloadClient {\n");
sb.Append(" Enable: ").Append(Enable).Append("\n");
sb.Append(" Protocol: ").Append(Protocol).Append("\n");
sb.Append(" Priority: ").Append(Priority).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" Fields: ").Append(Fields).Append("\n");
sb.Append(" ImplementationName: ").Append(ImplementationName).Append("\n");
sb.Append(" Implementation: ").Append(Implementation).Append("\n");
sb.Append(" ConfigContract: ").Append(ConfigContract).Append("\n");
sb.Append(" InfoLink: ").Append(InfoLink).Append("\n");
sb.Append(" Tags: ").Append(Tags).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,124 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class History {
/// <summary>
/// Gets or Sets MovieId
/// </summary>
[DataMember(Name="movieId", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "movieId")]
public decimal? MovieId { get; set; }
/// <summary>
/// Gets or Sets SourceTitle
/// </summary>
[DataMember(Name="sourceTitle", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "sourceTitle")]
public string SourceTitle { get; set; }
/// <summary>
/// Gets or Sets Languages
/// </summary>
[DataMember(Name="languages", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "languages")]
public List<HistoryLanguages> Languages { get; set; }
/// <summary>
/// Gets or Sets Quality
/// </summary>
[DataMember(Name="quality", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "quality")]
public Quality Quality { get; set; }
/// <summary>
/// Gets or Sets CustomFormats
/// </summary>
[DataMember(Name="customFormats", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "customFormats")]
public List<CustomFormat> CustomFormats { get; set; }
/// <summary>
/// Gets or Sets QualityCutoffNotMet
/// </summary>
[DataMember(Name="qualityCutoffNotMet", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "qualityCutoffNotMet")]
public bool? QualityCutoffNotMet { get; set; }
/// <summary>
/// Gets or Sets Date
/// </summary>
[DataMember(Name="date", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "date")]
public string Date { get; set; }
/// <summary>
/// Gets or Sets DownloadId
/// </summary>
[DataMember(Name="downloadId", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "downloadId")]
public string DownloadId { get; set; }
/// <summary>
/// Gets or Sets EventType
/// </summary>
[DataMember(Name="eventType", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "eventType")]
public string EventType { get; set; }
/// <summary>
/// Gets or Sets Data
/// </summary>
[DataMember(Name="data", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "data")]
public Object Data { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public decimal? Id { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class History {\n");
sb.Append(" MovieId: ").Append(MovieId).Append("\n");
sb.Append(" SourceTitle: ").Append(SourceTitle).Append("\n");
sb.Append(" Languages: ").Append(Languages).Append("\n");
sb.Append(" Quality: ").Append(Quality).Append("\n");
sb.Append(" CustomFormats: ").Append(CustomFormats).Append("\n");
sb.Append(" QualityCutoffNotMet: ").Append(QualityCutoffNotMet).Append("\n");
sb.Append(" Date: ").Append(Date).Append("\n");
sb.Append(" DownloadId: ").Append(DownloadId).Append("\n");
sb.Append(" EventType: ").Append(EventType).Append("\n");
sb.Append(" Data: ").Append(Data).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,52 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class HistoryLanguages {
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public decimal? Id { get; set; }
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name="name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class HistoryLanguages {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,60 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class Image {
/// <summary>
/// Gets or Sets CoverType
/// </summary>
[DataMember(Name="coverType", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "coverType")]
public string CoverType { get; set; }
/// <summary>
/// Gets or Sets Url
/// </summary>
[DataMember(Name="url", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "url")]
public string Url { get; set; }
/// <summary>
/// Gets or Sets RemoteUrl
/// </summary>
[DataMember(Name="remoteUrl", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "remoteUrl")]
public string RemoteUrl { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class Image {\n");
sb.Append(" CoverType: ").Append(CoverType).Append("\n");
sb.Append(" Url: ").Append(Url).Append("\n");
sb.Append(" RemoteUrl: ").Append(RemoteUrl).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,172 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class ImportList {
/// <summary>
/// Gets or Sets Enabled
/// </summary>
[DataMember(Name="enabled", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "enabled")]
public bool? Enabled { get; set; }
/// <summary>
/// Gets or Sets EnableAuto
/// </summary>
[DataMember(Name="enableAuto", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "enableAuto")]
public bool? EnableAuto { get; set; }
/// <summary>
/// Gets or Sets ShouldMonitor
/// </summary>
[DataMember(Name="shouldMonitor", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "shouldMonitor")]
public bool? ShouldMonitor { get; set; }
/// <summary>
/// Gets or Sets RootFolderPath
/// </summary>
[DataMember(Name="rootFolderPath", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "rootFolderPath")]
public string RootFolderPath { get; set; }
/// <summary>
/// Gets or Sets QualityProfileId
/// </summary>
[DataMember(Name="qualityProfileId", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "qualityProfileId")]
public decimal? QualityProfileId { get; set; }
/// <summary>
/// Gets or Sets SearchOnAdd
/// </summary>
[DataMember(Name="searchOnAdd", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "searchOnAdd")]
public bool? SearchOnAdd { get; set; }
/// <summary>
/// Gets or Sets MinimumAvailability
/// </summary>
[DataMember(Name="minimumAvailability", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "minimumAvailability")]
public string MinimumAvailability { get; set; }
/// <summary>
/// Gets or Sets ListType
/// </summary>
[DataMember(Name="listType", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "listType")]
public string ListType { get; set; }
/// <summary>
/// Gets or Sets ListOrder
/// </summary>
[DataMember(Name="listOrder", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "listOrder")]
public decimal? ListOrder { get; set; }
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name="name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
/// <summary>
/// Gets or Sets Fields
/// </summary>
[DataMember(Name="fields", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "fields")]
public List<ProviderField> Fields { get; set; }
/// <summary>
/// Gets or Sets ImplementationName
/// </summary>
[DataMember(Name="implementationName", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "implementationName")]
public string ImplementationName { get; set; }
/// <summary>
/// Gets or Sets Implementation
/// </summary>
[DataMember(Name="implementation", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "implementation")]
public string Implementation { get; set; }
/// <summary>
/// Gets or Sets ConfigContract
/// </summary>
[DataMember(Name="configContract", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "configContract")]
public string ConfigContract { get; set; }
/// <summary>
/// Gets or Sets InfoLink
/// </summary>
[DataMember(Name="infoLink", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "infoLink")]
public string InfoLink { get; set; }
/// <summary>
/// Gets or Sets Tags
/// </summary>
[DataMember(Name="tags", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "tags")]
public List<int?> Tags { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public int? Id { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class ImportList {\n");
sb.Append(" Enabled: ").Append(Enabled).Append("\n");
sb.Append(" EnableAuto: ").Append(EnableAuto).Append("\n");
sb.Append(" ShouldMonitor: ").Append(ShouldMonitor).Append("\n");
sb.Append(" RootFolderPath: ").Append(RootFolderPath).Append("\n");
sb.Append(" QualityProfileId: ").Append(QualityProfileId).Append("\n");
sb.Append(" SearchOnAdd: ").Append(SearchOnAdd).Append("\n");
sb.Append(" MinimumAvailability: ").Append(MinimumAvailability).Append("\n");
sb.Append(" ListType: ").Append(ListType).Append("\n");
sb.Append(" ListOrder: ").Append(ListOrder).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" Fields: ").Append(Fields).Append("\n");
sb.Append(" ImplementationName: ").Append(ImplementationName).Append("\n");
sb.Append(" Implementation: ").Append(Implementation).Append("\n");
sb.Append(" ConfigContract: ").Append(ConfigContract).Append("\n");
sb.Append(" InfoLink: ").Append(InfoLink).Append("\n");
sb.Append(" Tags: ").Append(Tags).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,156 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class Indexer {
/// <summary>
/// Gets or Sets EnableRss
/// </summary>
[DataMember(Name="enableRss", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "enableRss")]
public bool? EnableRss { get; set; }
/// <summary>
/// Gets or Sets EnableAutomaticSearch
/// </summary>
[DataMember(Name="enableAutomaticSearch", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "enableAutomaticSearch")]
public bool? EnableAutomaticSearch { get; set; }
/// <summary>
/// Gets or Sets EnableInteractiveSearch
/// </summary>
[DataMember(Name="enableInteractiveSearch", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "enableInteractiveSearch")]
public bool? EnableInteractiveSearch { get; set; }
/// <summary>
/// Gets or Sets SupportsRss
/// </summary>
[DataMember(Name="supportsRss", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "supportsRss")]
public bool? SupportsRss { get; set; }
/// <summary>
/// Gets or Sets SupportsSearch
/// </summary>
[DataMember(Name="supportsSearch", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "supportsSearch")]
public bool? SupportsSearch { get; set; }
/// <summary>
/// Gets or Sets Protocol
/// </summary>
[DataMember(Name="protocol", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "protocol")]
public string Protocol { get; set; }
/// <summary>
/// Gets or Sets Priority
/// </summary>
[DataMember(Name="priority", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "priority")]
public int? Priority { get; set; }
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name="name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
/// <summary>
/// Gets or Sets Fields
/// </summary>
[DataMember(Name="fields", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "fields")]
public List<ProviderField> Fields { get; set; }
/// <summary>
/// Gets or Sets ImplementationName
/// </summary>
[DataMember(Name="implementationName", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "implementationName")]
public string ImplementationName { get; set; }
/// <summary>
/// Gets or Sets Implementation
/// </summary>
[DataMember(Name="implementation", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "implementation")]
public string Implementation { get; set; }
/// <summary>
/// Gets or Sets ConfigContract
/// </summary>
[DataMember(Name="configContract", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "configContract")]
public string ConfigContract { get; set; }
/// <summary>
/// Gets or Sets InfoLink
/// </summary>
[DataMember(Name="infoLink", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "infoLink")]
public string InfoLink { get; set; }
/// <summary>
/// Gets or Sets Tags
/// </summary>
[DataMember(Name="tags", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "tags")]
public List<Object> Tags { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public decimal? Id { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class Indexer {\n");
sb.Append(" EnableRss: ").Append(EnableRss).Append("\n");
sb.Append(" EnableAutomaticSearch: ").Append(EnableAutomaticSearch).Append("\n");
sb.Append(" EnableInteractiveSearch: ").Append(EnableInteractiveSearch).Append("\n");
sb.Append(" SupportsRss: ").Append(SupportsRss).Append("\n");
sb.Append(" SupportsSearch: ").Append(SupportsSearch).Append("\n");
sb.Append(" Protocol: ").Append(Protocol).Append("\n");
sb.Append(" Priority: ").Append(Priority).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" Fields: ").Append(Fields).Append("\n");
sb.Append(" ImplementationName: ").Append(ImplementationName).Append("\n");
sb.Append(" Implementation: ").Append(Implementation).Append("\n");
sb.Append(" ConfigContract: ").Append(ConfigContract).Append("\n");
sb.Append(" InfoLink: ").Append(InfoLink).Append("\n");
sb.Append(" Tags: ").Append(Tags).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,244 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class InlineResponse200 {
/// <summary>
/// Gets or Sets Version
/// </summary>
[DataMember(Name="version", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "version")]
public string Version { get; set; }
/// <summary>
/// Gets or Sets BuildTime
/// </summary>
[DataMember(Name="buildTime", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "buildTime")]
public string BuildTime { get; set; }
/// <summary>
/// Gets or Sets IsDebug
/// </summary>
[DataMember(Name="isDebug", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "isDebug")]
public bool? IsDebug { get; set; }
/// <summary>
/// Gets or Sets IsProduction
/// </summary>
[DataMember(Name="isProduction", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "isProduction")]
public bool? IsProduction { get; set; }
/// <summary>
/// Gets or Sets IsAdmin
/// </summary>
[DataMember(Name="isAdmin", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "isAdmin")]
public bool? IsAdmin { get; set; }
/// <summary>
/// Gets or Sets IsUserInteractive
/// </summary>
[DataMember(Name="isUserInteractive", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "isUserInteractive")]
public bool? IsUserInteractive { get; set; }
/// <summary>
/// Gets or Sets StartupPath
/// </summary>
[DataMember(Name="startupPath", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "startupPath")]
public string StartupPath { get; set; }
/// <summary>
/// Gets or Sets AppData
/// </summary>
[DataMember(Name="appData", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "appData")]
public string AppData { get; set; }
/// <summary>
/// Gets or Sets OsName
/// </summary>
[DataMember(Name="osName", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "osName")]
public string OsName { get; set; }
/// <summary>
/// Gets or Sets OsVersion
/// </summary>
[DataMember(Name="osVersion", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "osVersion")]
public string OsVersion { get; set; }
/// <summary>
/// Gets or Sets IsNetCore
/// </summary>
[DataMember(Name="isNetCore", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "isNetCore")]
public bool? IsNetCore { get; set; }
/// <summary>
/// Gets or Sets IsMono
/// </summary>
[DataMember(Name="isMono", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "isMono")]
public bool? IsMono { get; set; }
/// <summary>
/// Gets or Sets IsLinux
/// </summary>
[DataMember(Name="isLinux", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "isLinux")]
public bool? IsLinux { get; set; }
/// <summary>
/// Gets or Sets IsOsx
/// </summary>
[DataMember(Name="isOsx", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "isOsx")]
public bool? IsOsx { get; set; }
/// <summary>
/// Gets or Sets IsWindows
/// </summary>
[DataMember(Name="isWindows", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "isWindows")]
public bool? IsWindows { get; set; }
/// <summary>
/// Gets or Sets IsDocker
/// </summary>
[DataMember(Name="isDocker", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "isDocker")]
public bool? IsDocker { get; set; }
/// <summary>
/// Gets or Sets Mode
/// </summary>
[DataMember(Name="mode", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "mode")]
public string Mode { get; set; }
/// <summary>
/// Gets or Sets Branch
/// </summary>
[DataMember(Name="branch", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "branch")]
public string Branch { get; set; }
/// <summary>
/// Gets or Sets Authentication
/// </summary>
[DataMember(Name="authentication", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "authentication")]
public string Authentication { get; set; }
/// <summary>
/// Gets or Sets SqliteVersion
/// </summary>
[DataMember(Name="sqliteVersion", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "sqliteVersion")]
public string SqliteVersion { get; set; }
/// <summary>
/// Gets or Sets MigrationVersion
/// </summary>
[DataMember(Name="migrationVersion", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "migrationVersion")]
public int? MigrationVersion { get; set; }
/// <summary>
/// Gets or Sets UrlBase
/// </summary>
[DataMember(Name="urlBase", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "urlBase")]
public string UrlBase { get; set; }
/// <summary>
/// Gets or Sets RuntimeVersion
/// </summary>
[DataMember(Name="runtimeVersion", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "runtimeVersion")]
public string RuntimeVersion { get; set; }
/// <summary>
/// Gets or Sets RuntimeName
/// </summary>
[DataMember(Name="runtimeName", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "runtimeName")]
public string RuntimeName { get; set; }
/// <summary>
/// Gets or Sets StartTime
/// </summary>
[DataMember(Name="startTime", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "startTime")]
public string StartTime { get; set; }
/// <summary>
/// Gets or Sets PackageUpdateMechanism
/// </summary>
[DataMember(Name="packageUpdateMechanism", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "packageUpdateMechanism")]
public string PackageUpdateMechanism { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class InlineResponse200 {\n");
sb.Append(" Version: ").Append(Version).Append("\n");
sb.Append(" BuildTime: ").Append(BuildTime).Append("\n");
sb.Append(" IsDebug: ").Append(IsDebug).Append("\n");
sb.Append(" IsProduction: ").Append(IsProduction).Append("\n");
sb.Append(" IsAdmin: ").Append(IsAdmin).Append("\n");
sb.Append(" IsUserInteractive: ").Append(IsUserInteractive).Append("\n");
sb.Append(" StartupPath: ").Append(StartupPath).Append("\n");
sb.Append(" AppData: ").Append(AppData).Append("\n");
sb.Append(" OsName: ").Append(OsName).Append("\n");
sb.Append(" OsVersion: ").Append(OsVersion).Append("\n");
sb.Append(" IsNetCore: ").Append(IsNetCore).Append("\n");
sb.Append(" IsMono: ").Append(IsMono).Append("\n");
sb.Append(" IsLinux: ").Append(IsLinux).Append("\n");
sb.Append(" IsOsx: ").Append(IsOsx).Append("\n");
sb.Append(" IsWindows: ").Append(IsWindows).Append("\n");
sb.Append(" IsDocker: ").Append(IsDocker).Append("\n");
sb.Append(" Mode: ").Append(Mode).Append("\n");
sb.Append(" Branch: ").Append(Branch).Append("\n");
sb.Append(" Authentication: ").Append(Authentication).Append("\n");
sb.Append(" SqliteVersion: ").Append(SqliteVersion).Append("\n");
sb.Append(" MigrationVersion: ").Append(MigrationVersion).Append("\n");
sb.Append(" UrlBase: ").Append(UrlBase).Append("\n");
sb.Append(" RuntimeVersion: ").Append(RuntimeVersion).Append("\n");
sb.Append(" RuntimeName: ").Append(RuntimeName).Append("\n");
sb.Append(" StartTime: ").Append(StartTime).Append("\n");
sb.Append(" PackageUpdateMechanism: ").Append(PackageUpdateMechanism).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,116 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class InlineResponse2001 {
/// <summary>
/// Gets or Sets Version
/// </summary>
[DataMember(Name="version", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "version")]
public string Version { get; set; }
/// <summary>
/// Gets or Sets Branch
/// </summary>
[DataMember(Name="branch", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "branch")]
public string Branch { get; set; }
/// <summary>
/// Gets or Sets ReleaseDate
/// </summary>
[DataMember(Name="releaseDate", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "releaseDate")]
public string ReleaseDate { get; set; }
/// <summary>
/// Gets or Sets FileName
/// </summary>
[DataMember(Name="fileName", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "fileName")]
public string FileName { get; set; }
/// <summary>
/// Gets or Sets Url
/// </summary>
[DataMember(Name="url", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "url")]
public string Url { get; set; }
/// <summary>
/// Gets or Sets Installed
/// </summary>
[DataMember(Name="installed", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "installed")]
public bool? Installed { get; set; }
/// <summary>
/// Gets or Sets Installable
/// </summary>
[DataMember(Name="installable", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "installable")]
public bool? Installable { get; set; }
/// <summary>
/// Gets or Sets Latest
/// </summary>
[DataMember(Name="latest", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "latest")]
public bool? Latest { get; set; }
/// <summary>
/// Gets or Sets Changes
/// </summary>
[DataMember(Name="changes", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "changes")]
public InlineResponse2001Changes Changes { get; set; }
/// <summary>
/// Gets or Sets Hash
/// </summary>
[DataMember(Name="hash", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "hash")]
public string Hash { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class InlineResponse2001 {\n");
sb.Append(" Version: ").Append(Version).Append("\n");
sb.Append(" Branch: ").Append(Branch).Append("\n");
sb.Append(" ReleaseDate: ").Append(ReleaseDate).Append("\n");
sb.Append(" FileName: ").Append(FileName).Append("\n");
sb.Append(" Url: ").Append(Url).Append("\n");
sb.Append(" Installed: ").Append(Installed).Append("\n");
sb.Append(" Installable: ").Append(Installable).Append("\n");
sb.Append(" Latest: ").Append(Latest).Append("\n");
sb.Append(" Changes: ").Append(Changes).Append("\n");
sb.Append(" Hash: ").Append(Hash).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,92 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class InlineResponse20010 {
/// <summary>
/// Gets or Sets TotalCount
/// </summary>
[DataMember(Name="totalCount", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "totalCount")]
public int? TotalCount { get; set; }
/// <summary>
/// Gets or Sets Count
/// </summary>
[DataMember(Name="count", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "count")]
public int? Count { get; set; }
/// <summary>
/// Gets or Sets UnknownCount
/// </summary>
[DataMember(Name="unknownCount", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "unknownCount")]
public int? UnknownCount { get; set; }
/// <summary>
/// Gets or Sets Errors
/// </summary>
[DataMember(Name="errors", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "errors")]
public bool? Errors { get; set; }
/// <summary>
/// Gets or Sets Warnings
/// </summary>
[DataMember(Name="warnings", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "warnings")]
public bool? Warnings { get; set; }
/// <summary>
/// Gets or Sets UnknownErrors
/// </summary>
[DataMember(Name="unknownErrors", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "unknownErrors")]
public bool? UnknownErrors { get; set; }
/// <summary>
/// Gets or Sets UnknownWarnings
/// </summary>
[DataMember(Name="unknownWarnings", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "unknownWarnings")]
public bool? UnknownWarnings { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class InlineResponse20010 {\n");
sb.Append(" TotalCount: ").Append(TotalCount).Append("\n");
sb.Append(" Count: ").Append(Count).Append("\n");
sb.Append(" UnknownCount: ").Append(UnknownCount).Append("\n");
sb.Append(" Errors: ").Append(Errors).Append("\n");
sb.Append(" Warnings: ").Append(Warnings).Append("\n");
sb.Append(" UnknownErrors: ").Append(UnknownErrors).Append("\n");
sb.Append(" UnknownWarnings: ").Append(UnknownWarnings).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,52 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class InlineResponse2001Changes {
/// <summary>
/// Gets or Sets _New
/// </summary>
[DataMember(Name="new", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "new")]
public List<string> _New { get; set; }
/// <summary>
/// Gets or Sets _Fixed
/// </summary>
[DataMember(Name="fixed", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "fixed")]
public List<string> _Fixed { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class InlineResponse2001Changes {\n");
sb.Append(" _New: ").Append(_New).Append("\n");
sb.Append(" _Fixed: ").Append(_Fixed).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,76 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class InlineResponse2002 {
/// <summary>
/// Gets or Sets Page
/// </summary>
[DataMember(Name="page", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "page")]
public int? Page { get; set; }
/// <summary>
/// Gets or Sets PageSize
/// </summary>
[DataMember(Name="pageSize", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "pageSize")]
public int? PageSize { get; set; }
/// <summary>
/// Gets or Sets SortDirection
/// </summary>
[DataMember(Name="sortDirection", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "sortDirection")]
public string SortDirection { get; set; }
/// <summary>
/// Gets or Sets TotalRecords
/// </summary>
[DataMember(Name="totalRecords", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "totalRecords")]
public int? TotalRecords { get; set; }
/// <summary>
/// Gets or Sets Records
/// </summary>
[DataMember(Name="records", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "records")]
public List<History> Records { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class InlineResponse2002 {\n");
sb.Append(" Page: ").Append(Page).Append("\n");
sb.Append(" PageSize: ").Append(PageSize).Append("\n");
sb.Append(" SortDirection: ").Append(SortDirection).Append("\n");
sb.Append(" TotalRecords: ").Append(TotalRecords).Append("\n");
sb.Append(" Records: ").Append(Records).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,68 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class InlineResponse2003 {
/// <summary>
/// Gets or Sets Type
/// </summary>
[DataMember(Name="type", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
/// <summary>
/// Gets or Sets Label
/// </summary>
[DataMember(Name="label", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "label")]
public string Label { get; set; }
/// <summary>
/// Gets or Sets Filters
/// </summary>
[DataMember(Name="filters", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "filters")]
public List<CustomfilterFilters> Filters { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public int? Id { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class InlineResponse2003 {\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append(" Label: ").Append(Label).Append("\n");
sb.Append(" Filters: ").Append(Filters).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,116 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class InlineResponse2004 {
/// <summary>
/// Gets or Sets FirstDayOfWeek
/// </summary>
[DataMember(Name="firstDayOfWeek", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "firstDayOfWeek")]
public int? FirstDayOfWeek { get; set; }
/// <summary>
/// Gets or Sets CalendarWeekColumnHeader
/// </summary>
[DataMember(Name="calendarWeekColumnHeader", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "calendarWeekColumnHeader")]
public string CalendarWeekColumnHeader { get; set; }
/// <summary>
/// Gets or Sets MovieRuntimeFormat
/// </summary>
[DataMember(Name="movieRuntimeFormat", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "movieRuntimeFormat")]
public string MovieRuntimeFormat { get; set; }
/// <summary>
/// Gets or Sets ShortDateFormat
/// </summary>
[DataMember(Name="shortDateFormat", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "shortDateFormat")]
public string ShortDateFormat { get; set; }
/// <summary>
/// Gets or Sets LongDateFormat
/// </summary>
[DataMember(Name="longDateFormat", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "longDateFormat")]
public string LongDateFormat { get; set; }
/// <summary>
/// Gets or Sets TimeFormat
/// </summary>
[DataMember(Name="timeFormat", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "timeFormat")]
public string TimeFormat { get; set; }
/// <summary>
/// Gets or Sets ShowRelativeDates
/// </summary>
[DataMember(Name="showRelativeDates", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "showRelativeDates")]
public bool? ShowRelativeDates { get; set; }
/// <summary>
/// Gets or Sets EnableColorImpairedMode
/// </summary>
[DataMember(Name="enableColorImpairedMode", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "enableColorImpairedMode")]
public bool? EnableColorImpairedMode { get; set; }
/// <summary>
/// Gets or Sets MovieInfoLanguage
/// </summary>
[DataMember(Name="movieInfoLanguage", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "movieInfoLanguage")]
public int? MovieInfoLanguage { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public int? Id { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class InlineResponse2004 {\n");
sb.Append(" FirstDayOfWeek: ").Append(FirstDayOfWeek).Append("\n");
sb.Append(" CalendarWeekColumnHeader: ").Append(CalendarWeekColumnHeader).Append("\n");
sb.Append(" MovieRuntimeFormat: ").Append(MovieRuntimeFormat).Append("\n");
sb.Append(" ShortDateFormat: ").Append(ShortDateFormat).Append("\n");
sb.Append(" LongDateFormat: ").Append(LongDateFormat).Append("\n");
sb.Append(" TimeFormat: ").Append(TimeFormat).Append("\n");
sb.Append(" ShowRelativeDates: ").Append(ShowRelativeDates).Append("\n");
sb.Append(" EnableColorImpairedMode: ").Append(EnableColorImpairedMode).Append("\n");
sb.Append(" MovieInfoLanguage: ").Append(MovieInfoLanguage).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,68 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class InlineResponse2005 {
/// <summary>
/// Gets or Sets Host
/// </summary>
[DataMember(Name="host", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "host")]
public string Host { get; set; }
/// <summary>
/// Gets or Sets RemotePath
/// </summary>
[DataMember(Name="remotePath", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "remotePath")]
public string RemotePath { get; set; }
/// <summary>
/// Gets or Sets LocalPath
/// </summary>
[DataMember(Name="localPath", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "localPath")]
public string LocalPath { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public int? Id { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class InlineResponse2005 {\n");
sb.Append(" Host: ").Append(Host).Append("\n");
sb.Append(" RemotePath: ").Append(RemotePath).Append("\n");
sb.Append(" LocalPath: ").Append(LocalPath).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,88 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class InlineResponse2006 {
/// <summary>
/// 1
/// </summary>
/// <value>1</value>
[DataMember(Name="page", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "page")]
public int? Page { get; set; }
/// <summary>
/// 20
/// </summary>
/// <value>20</value>
[DataMember(Name="pageSize", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "pageSize")]
public int? PageSize { get; set; }
/// <summary>
/// descending
/// </summary>
/// <value>descending</value>
[DataMember(Name="sortDirection", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "sortDirection")]
public string SortDirection { get; set; }
/// <summary>
/// date
/// </summary>
/// <value>date</value>
[DataMember(Name="sortKey", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "sortKey")]
public string SortKey { get; set; }
/// <summary>
/// Gets or Sets TotalRecords
/// </summary>
[DataMember(Name="totalRecords", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "totalRecords")]
public int? TotalRecords { get; set; }
/// <summary>
/// Gets or Sets Records
/// </summary>
[DataMember(Name="records", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "records")]
public List<Blocklist> Records { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class InlineResponse2006 {\n");
sb.Append(" Page: ").Append(Page).Append("\n");
sb.Append(" PageSize: ").Append(PageSize).Append("\n");
sb.Append(" SortDirection: ").Append(SortDirection).Append("\n");
sb.Append(" SortKey: ").Append(SortKey).Append("\n");
sb.Append(" TotalRecords: ").Append(TotalRecords).Append("\n");
sb.Append(" Records: ").Append(Records).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,292 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class InlineResponse2007 {
/// <summary>
/// Gets or Sets BindAddress
/// </summary>
[DataMember(Name="bindAddress", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "bindAddress")]
public string BindAddress { get; set; }
/// <summary>
/// Gets or Sets Port
/// </summary>
[DataMember(Name="port", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "port")]
public int? Port { get; set; }
/// <summary>
/// Gets or Sets SslPort
/// </summary>
[DataMember(Name="sslPort", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "sslPort")]
public int? SslPort { get; set; }
/// <summary>
/// Gets or Sets EnableSsl
/// </summary>
[DataMember(Name="enableSsl", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "enableSsl")]
public bool? EnableSsl { get; set; }
/// <summary>
/// Gets or Sets LaunchBrowser
/// </summary>
[DataMember(Name="launchBrowser", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "launchBrowser")]
public bool? LaunchBrowser { get; set; }
/// <summary>
/// Gets or Sets AuthenticationMethod
/// </summary>
[DataMember(Name="authenticationMethod", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "authenticationMethod")]
public string AuthenticationMethod { get; set; }
/// <summary>
/// Gets or Sets AnalyticsEnabled
/// </summary>
[DataMember(Name="analyticsEnabled", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "analyticsEnabled")]
public bool? AnalyticsEnabled { get; set; }
/// <summary>
/// Gets or Sets Username
/// </summary>
[DataMember(Name="username", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "username")]
public string Username { get; set; }
/// <summary>
/// Gets or Sets Password
/// </summary>
[DataMember(Name="password", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "password")]
public string Password { get; set; }
/// <summary>
/// Gets or Sets LogLevel
/// </summary>
[DataMember(Name="logLevel", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "logLevel")]
public string LogLevel { get; set; }
/// <summary>
/// Gets or Sets ConsoleLogLevel
/// </summary>
[DataMember(Name="consoleLogLevel", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "consoleLogLevel")]
public string ConsoleLogLevel { get; set; }
/// <summary>
/// Gets or Sets Branch
/// </summary>
[DataMember(Name="branch", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "branch")]
public string Branch { get; set; }
/// <summary>
/// Gets or Sets ApiKey
/// </summary>
[DataMember(Name="apiKey", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "apiKey")]
public string ApiKey { get; set; }
/// <summary>
/// Gets or Sets SslCertPath
/// </summary>
[DataMember(Name="sslCertPath", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "sslCertPath")]
public string SslCertPath { get; set; }
/// <summary>
/// Gets or Sets SslCertPassword
/// </summary>
[DataMember(Name="sslCertPassword", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "sslCertPassword")]
public string SslCertPassword { get; set; }
/// <summary>
/// Gets or Sets UrlBase
/// </summary>
[DataMember(Name="urlBase", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "urlBase")]
public string UrlBase { get; set; }
/// <summary>
/// Gets or Sets UpdateAutomatically
/// </summary>
[DataMember(Name="updateAutomatically", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "updateAutomatically")]
public bool? UpdateAutomatically { get; set; }
/// <summary>
/// Gets or Sets UpdateMechanism
/// </summary>
[DataMember(Name="updateMechanism", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "updateMechanism")]
public string UpdateMechanism { get; set; }
/// <summary>
/// Gets or Sets UpdateScriptPath
/// </summary>
[DataMember(Name="updateScriptPath", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "updateScriptPath")]
public string UpdateScriptPath { get; set; }
/// <summary>
/// Gets or Sets ProxyEnabled
/// </summary>
[DataMember(Name="proxyEnabled", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "proxyEnabled")]
public bool? ProxyEnabled { get; set; }
/// <summary>
/// Gets or Sets ProxyType
/// </summary>
[DataMember(Name="proxyType", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "proxyType")]
public string ProxyType { get; set; }
/// <summary>
/// Gets or Sets ProxyHostname
/// </summary>
[DataMember(Name="proxyHostname", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "proxyHostname")]
public string ProxyHostname { get; set; }
/// <summary>
/// Gets or Sets ProxyPort
/// </summary>
[DataMember(Name="proxyPort", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "proxyPort")]
public int? ProxyPort { get; set; }
/// <summary>
/// Gets or Sets ProxyUsername
/// </summary>
[DataMember(Name="proxyUsername", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "proxyUsername")]
public string ProxyUsername { get; set; }
/// <summary>
/// Gets or Sets ProxyPassword
/// </summary>
[DataMember(Name="proxyPassword", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "proxyPassword")]
public string ProxyPassword { get; set; }
/// <summary>
/// Gets or Sets ProxyBypassFilter
/// </summary>
[DataMember(Name="proxyBypassFilter", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "proxyBypassFilter")]
public string ProxyBypassFilter { get; set; }
/// <summary>
/// Gets or Sets ProxyBypassLocalAddresses
/// </summary>
[DataMember(Name="proxyBypassLocalAddresses", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "proxyBypassLocalAddresses")]
public bool? ProxyBypassLocalAddresses { get; set; }
/// <summary>
/// Gets or Sets CertificateValidation
/// </summary>
[DataMember(Name="certificateValidation", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "certificateValidation")]
public string CertificateValidation { get; set; }
/// <summary>
/// Gets or Sets BackupFolder
/// </summary>
[DataMember(Name="backupFolder", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "backupFolder")]
public string BackupFolder { get; set; }
/// <summary>
/// Gets or Sets BackupInterval
/// </summary>
[DataMember(Name="backupInterval", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "backupInterval")]
public int? BackupInterval { get; set; }
/// <summary>
/// Gets or Sets BackupRetention
/// </summary>
[DataMember(Name="backupRetention", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "backupRetention")]
public int? BackupRetention { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public int? Id { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class InlineResponse2007 {\n");
sb.Append(" BindAddress: ").Append(BindAddress).Append("\n");
sb.Append(" Port: ").Append(Port).Append("\n");
sb.Append(" SslPort: ").Append(SslPort).Append("\n");
sb.Append(" EnableSsl: ").Append(EnableSsl).Append("\n");
sb.Append(" LaunchBrowser: ").Append(LaunchBrowser).Append("\n");
sb.Append(" AuthenticationMethod: ").Append(AuthenticationMethod).Append("\n");
sb.Append(" AnalyticsEnabled: ").Append(AnalyticsEnabled).Append("\n");
sb.Append(" Username: ").Append(Username).Append("\n");
sb.Append(" Password: ").Append(Password).Append("\n");
sb.Append(" LogLevel: ").Append(LogLevel).Append("\n");
sb.Append(" ConsoleLogLevel: ").Append(ConsoleLogLevel).Append("\n");
sb.Append(" Branch: ").Append(Branch).Append("\n");
sb.Append(" ApiKey: ").Append(ApiKey).Append("\n");
sb.Append(" SslCertPath: ").Append(SslCertPath).Append("\n");
sb.Append(" SslCertPassword: ").Append(SslCertPassword).Append("\n");
sb.Append(" UrlBase: ").Append(UrlBase).Append("\n");
sb.Append(" UpdateAutomatically: ").Append(UpdateAutomatically).Append("\n");
sb.Append(" UpdateMechanism: ").Append(UpdateMechanism).Append("\n");
sb.Append(" UpdateScriptPath: ").Append(UpdateScriptPath).Append("\n");
sb.Append(" ProxyEnabled: ").Append(ProxyEnabled).Append("\n");
sb.Append(" ProxyType: ").Append(ProxyType).Append("\n");
sb.Append(" ProxyHostname: ").Append(ProxyHostname).Append("\n");
sb.Append(" ProxyPort: ").Append(ProxyPort).Append("\n");
sb.Append(" ProxyUsername: ").Append(ProxyUsername).Append("\n");
sb.Append(" ProxyPassword: ").Append(ProxyPassword).Append("\n");
sb.Append(" ProxyBypassFilter: ").Append(ProxyBypassFilter).Append("\n");
sb.Append(" ProxyBypassLocalAddresses: ").Append(ProxyBypassLocalAddresses).Append("\n");
sb.Append(" CertificateValidation: ").Append(CertificateValidation).Append("\n");
sb.Append(" BackupFolder: ").Append(BackupFolder).Append("\n");
sb.Append(" BackupInterval: ").Append(BackupInterval).Append("\n");
sb.Append(" BackupRetention: ").Append(BackupRetention).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,100 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class InlineResponse2008 {
/// <summary>
/// Gets or Sets RenameMovies
/// </summary>
[DataMember(Name="renameMovies", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "renameMovies")]
public bool? RenameMovies { get; set; }
/// <summary>
/// Gets or Sets ReplaceIllegalCharacters
/// </summary>
[DataMember(Name="replaceIllegalCharacters", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "replaceIllegalCharacters")]
public bool? ReplaceIllegalCharacters { get; set; }
/// <summary>
/// Gets or Sets ColonReplacementFormat
/// </summary>
[DataMember(Name="colonReplacementFormat", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "colonReplacementFormat")]
public string ColonReplacementFormat { get; set; }
/// <summary>
/// Gets or Sets StandardMovieFormat
/// </summary>
[DataMember(Name="standardMovieFormat", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "standardMovieFormat")]
public string StandardMovieFormat { get; set; }
/// <summary>
/// Gets or Sets MovieFolderFormat
/// </summary>
[DataMember(Name="movieFolderFormat", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "movieFolderFormat")]
public string MovieFolderFormat { get; set; }
/// <summary>
/// Gets or Sets IncludeQuality
/// </summary>
[DataMember(Name="includeQuality", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "includeQuality")]
public bool? IncludeQuality { get; set; }
/// <summary>
/// Gets or Sets ReplaceSpaces
/// </summary>
[DataMember(Name="replaceSpaces", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "replaceSpaces")]
public bool? ReplaceSpaces { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public decimal? Id { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class InlineResponse2008 {\n");
sb.Append(" RenameMovies: ").Append(RenameMovies).Append("\n");
sb.Append(" ReplaceIllegalCharacters: ").Append(ReplaceIllegalCharacters).Append("\n");
sb.Append(" ColonReplacementFormat: ").Append(ColonReplacementFormat).Append("\n");
sb.Append(" StandardMovieFormat: ").Append(StandardMovieFormat).Append("\n");
sb.Append(" MovieFolderFormat: ").Append(MovieFolderFormat).Append("\n");
sb.Append(" IncludeQuality: ").Append(IncludeQuality).Append("\n");
sb.Append(" ReplaceSpaces: ").Append(ReplaceSpaces).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,188 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class InlineResponse2009 {
/// <summary>
/// Gets or Sets Languages
/// </summary>
[DataMember(Name="languages", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "languages")]
public List<QueuedetailsLanguages> Languages { get; set; }
/// <summary>
/// Gets or Sets Quality
/// </summary>
[DataMember(Name="quality", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "quality")]
public Quality Quality { get; set; }
/// <summary>
/// Gets or Sets CustomFormats
/// </summary>
[DataMember(Name="customFormats", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "customFormats")]
public List<CustomFormat> CustomFormats { get; set; }
/// <summary>
/// Gets or Sets Size
/// </summary>
[DataMember(Name="size", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "size")]
public decimal? Size { get; set; }
/// <summary>
/// Gets or Sets Title
/// </summary>
[DataMember(Name="title", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "title")]
public string Title { get; set; }
/// <summary>
/// Gets or Sets Sizeleft
/// </summary>
[DataMember(Name="sizeleft", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "sizeleft")]
public decimal? Sizeleft { get; set; }
/// <summary>
/// Gets or Sets Timeleft
/// </summary>
[DataMember(Name="timeleft", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "timeleft")]
public string Timeleft { get; set; }
/// <summary>
/// Gets or Sets EstimatedCompletionTime
/// </summary>
[DataMember(Name="estimatedCompletionTime", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "estimatedCompletionTime")]
public string EstimatedCompletionTime { get; set; }
/// <summary>
/// Gets or Sets Status
/// </summary>
[DataMember(Name="status", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "status")]
public string Status { get; set; }
/// <summary>
/// Gets or Sets TrackedDownloadStatus
/// </summary>
[DataMember(Name="trackedDownloadStatus", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "trackedDownloadStatus")]
public string TrackedDownloadStatus { get; set; }
/// <summary>
/// Gets or Sets TrackedDownloadState
/// </summary>
[DataMember(Name="trackedDownloadState", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "trackedDownloadState")]
public string TrackedDownloadState { get; set; }
/// <summary>
/// Gets or Sets StatusMessages
/// </summary>
[DataMember(Name="statusMessages", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "statusMessages")]
public List<QueuedetailsStatusMessages> StatusMessages { get; set; }
/// <summary>
/// Gets or Sets ErrorMessage
/// </summary>
[DataMember(Name="errorMessage", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "errorMessage")]
public string ErrorMessage { get; set; }
/// <summary>
/// Gets or Sets DownloadId
/// </summary>
[DataMember(Name="downloadId", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "downloadId")]
public string DownloadId { get; set; }
/// <summary>
/// Gets or Sets Protocol
/// </summary>
[DataMember(Name="protocol", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "protocol")]
public string Protocol { get; set; }
/// <summary>
/// Gets or Sets DownloadClient
/// </summary>
[DataMember(Name="downloadClient", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "downloadClient")]
public string DownloadClient { get; set; }
/// <summary>
/// Gets or Sets Indexer
/// </summary>
[DataMember(Name="indexer", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "indexer")]
public string Indexer { get; set; }
/// <summary>
/// Gets or Sets OutputPath
/// </summary>
[DataMember(Name="outputPath", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "outputPath")]
public string OutputPath { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public int? Id { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class InlineResponse2009 {\n");
sb.Append(" Languages: ").Append(Languages).Append("\n");
sb.Append(" Quality: ").Append(Quality).Append("\n");
sb.Append(" CustomFormats: ").Append(CustomFormats).Append("\n");
sb.Append(" Size: ").Append(Size).Append("\n");
sb.Append(" Title: ").Append(Title).Append("\n");
sb.Append(" Sizeleft: ").Append(Sizeleft).Append("\n");
sb.Append(" Timeleft: ").Append(Timeleft).Append("\n");
sb.Append(" EstimatedCompletionTime: ").Append(EstimatedCompletionTime).Append("\n");
sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append(" TrackedDownloadStatus: ").Append(TrackedDownloadStatus).Append("\n");
sb.Append(" TrackedDownloadState: ").Append(TrackedDownloadState).Append("\n");
sb.Append(" StatusMessages: ").Append(StatusMessages).Append("\n");
sb.Append(" ErrorMessage: ").Append(ErrorMessage).Append("\n");
sb.Append(" DownloadId: ").Append(DownloadId).Append("\n");
sb.Append(" Protocol: ").Append(Protocol).Append("\n");
sb.Append(" DownloadClient: ").Append(DownloadClient).Append("\n");
sb.Append(" Indexer: ").Append(Indexer).Append("\n");
sb.Append(" OutputPath: ").Append(OutputPath).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,44 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class InlineResponse201 {
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name="name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class InlineResponse201 {\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,44 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class InlineResponse401 {
/// <summary>
/// Gets or Sets Error
/// </summary>
[DataMember(Name="error", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "error")]
public string Error { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class InlineResponse401 {\n");
sb.Append(" Error: ").Append(Error).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,108 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class Metadata {
/// <summary>
/// Gets or Sets Enable
/// </summary>
[DataMember(Name="enable", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "enable")]
public bool? Enable { get; set; }
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name="name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
/// <summary>
/// Gets or Sets Fields
/// </summary>
[DataMember(Name="fields", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "fields")]
public List<ProviderField> Fields { get; set; }
/// <summary>
/// Gets or Sets ImplementationName
/// </summary>
[DataMember(Name="implementationName", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "implementationName")]
public string ImplementationName { get; set; }
/// <summary>
/// Gets or Sets Implementation
/// </summary>
[DataMember(Name="implementation", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "implementation")]
public string Implementation { get; set; }
/// <summary>
/// Gets or Sets ConfigContract
/// </summary>
[DataMember(Name="configContract", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "configContract")]
public string ConfigContract { get; set; }
/// <summary>
/// Gets or Sets InfoLink
/// </summary>
[DataMember(Name="infoLink", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "infoLink")]
public string InfoLink { get; set; }
/// <summary>
/// Gets or Sets Tags
/// </summary>
[DataMember(Name="tags", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "tags")]
public List<int?> Tags { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public int? Id { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class Metadata {\n");
sb.Append(" Enable: ").Append(Enable).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" Fields: ").Append(Fields).Append("\n");
sb.Append(" ImplementationName: ").Append(ImplementationName).Append("\n");
sb.Append(" Implementation: ").Append(Implementation).Append("\n");
sb.Append(" ConfigContract: ").Append(ConfigContract).Append("\n");
sb.Append(" InfoLink: ").Append(InfoLink).Append("\n");
sb.Append(" Tags: ").Append(Tags).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,302 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models
{
/// <summary>
///
/// </summary>
[DataContract]
public class Movie
{
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name = "id", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "id")]
public int Id { get; set; }
/// <summary>
/// Gets or Sets Title
/// </summary>
[DataMember(Name = "title", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "title")]
public string Title { get; set; }
/// <summary>
/// Gets or Sets SortTitle
/// </summary>
[DataMember(Name = "sortTitle", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sortTitle")]
public string SortTitle { get; set; }
/// <summary>
/// Gets or Sets SizeOnDisk
/// </summary>
[DataMember(Name = "sizeOnDisk", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sizeOnDisk")]
public long SizeOnDisk { get; set; }
/// <summary>
/// Gets or Sets Overview
/// </summary>
[DataMember(Name = "overview", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "overview")]
public string Overview { get; set; }
/// <summary>
/// Gets or Sets InCinemas
/// </summary>
[DataMember(Name = "inCinemas", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "inCinemas")]
public string InCinemas { get; set; }
/// <summary>
/// Gets or Sets PhysicalRelease
/// </summary>
[DataMember(Name = "physicalRelease", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "physicalRelease")]
public string PhysicalRelease { get; set; }
/// <summary>
/// Gets or Sets Images
/// </summary>
[DataMember(Name = "images", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "images")]
public List<Image> Images { get; set; }
/// <summary>
/// Gets or Sets Website
/// </summary>
[DataMember(Name = "website", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "website")]
public string Website { get; set; }
/// <summary>
/// Gets or Sets Year
/// </summary>
[DataMember(Name = "year", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "year")]
public int? Year { get; set; }
/// <summary>
/// Gets or Sets HasFile
/// </summary>
[DataMember(Name = "hasFile", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "hasFile")]
public bool? HasFile { get; set; }
/// <summary>
/// Gets or Sets YouTubeTrailerId
/// </summary>
[DataMember(Name = "youTubeTrailerId", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "youTubeTrailerId")]
public string YouTubeTrailerId { get; set; }
/// <summary>
/// Gets or Sets Studio
/// </summary>
[DataMember(Name = "studio", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "studio")]
public string Studio { get; set; }
/// <summary>
/// Gets or Sets Path
/// </summary>
[DataMember(Name = "path", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "path")]
public string Path { get; set; }
/// <summary>
/// Gets or Sets RootFolderPath
/// </summary>
[DataMember(Name = "rootFolderPath", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "rootFolderPath")]
public string RootFolderPath { get; set; }
/// <summary>
/// Gets or Sets QualityProfileId
/// </summary>
[DataMember(Name = "qualityProfileId", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "qualityProfileId")]
public int? QualityProfileId { get; set; }
/// <summary>
/// Gets or Sets Monitored
/// </summary>
[DataMember(Name = "monitored", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "monitored")]
public bool? Monitored { get; set; }
/// <summary>
/// Gets or Sets MinimumAvailability
/// </summary>
[DataMember(Name = "minimumAvailability", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "minimumAvailability")]
public string MinimumAvailability { get; set; }
/// <summary>
/// Gets or Sets IsAvailable
/// </summary>
[DataMember(Name = "isAvailable", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "isAvailable")]
public bool? IsAvailable { get; set; }
/// <summary>
/// Gets or Sets FolderName
/// </summary>
[DataMember(Name = "folderName", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "folderName")]
public string FolderName { get; set; }
/// <summary>
/// Gets or Sets Runtime
/// </summary>
[DataMember(Name = "runtime", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "runtime")]
public int? Runtime { get; set; }
/// <summary>
/// Gets or Sets CleanTitle
/// </summary>
[DataMember(Name = "cleanTitle", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "cleanTitle")]
public string CleanTitle { get; set; }
/// <summary>
/// Gets or Sets ImdbId
/// </summary>
[DataMember(Name = "imdbId", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "imdbId")]
public string ImdbId { get; set; }
/// <summary>
/// Gets or Sets TmdbId
/// </summary>
[DataMember(Name = "tmdbId", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "tmdbId")]
public int? TmdbId { get; set; }
/// <summary>
/// Gets or Sets TitleSlug
/// </summary>
[DataMember(Name = "titleSlug", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "titleSlug")]
public string TitleSlug { get; set; }
/// <summary>
/// Gets or Sets Certification
/// </summary>
[DataMember(Name = "certification", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "certification")]
public string Certification { get; set; }
/// <summary>
/// Gets or Sets Genres
/// </summary>
[DataMember(Name = "genres", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "genres")]
public List<string> Genres { get; set; }
/// <summary>
/// Gets or Sets Tags
/// </summary>
[DataMember(Name = "tags", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "tags")]
public List<int?> Tags { get; set; }
/// <summary>
/// Gets or Sets Added
/// </summary>
[DataMember(Name = "added", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "added")]
public string Added { get; set; }
/// <summary>
/// Gets or Sets Ratings
/// </summary>
[DataMember(Name = "ratings", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "ratings")]
public Rating Ratings { get; set; }
/// <summary>
/// Gets or Sets Collection
/// </summary>
[DataMember(Name = "collection", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "collection")]
public Collection Collection { get; set; }
/// <summary>
/// movie status
/// </summary>
/// <value>movie status</value>
[DataMember(Name = "status", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "status")]
public string Status { get; set; }
public void FixPathObject(string moviePath)
{
if (string.IsNullOrWhiteSpace(this.Path))
this.Path = $"/{moviePath}/{Title} ({Year})";
}
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class Movie {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Title: ").Append(Title).Append("\n");
sb.Append(" SortTitle: ").Append(SortTitle).Append("\n");
sb.Append(" SizeOnDisk: ").Append(SizeOnDisk).Append("\n");
sb.Append(" Overview: ").Append(Overview).Append("\n");
sb.Append(" InCinemas: ").Append(InCinemas).Append("\n");
sb.Append(" PhysicalRelease: ").Append(PhysicalRelease).Append("\n");
sb.Append(" Images: ").Append(Images).Append("\n");
sb.Append(" Website: ").Append(Website).Append("\n");
sb.Append(" Year: ").Append(Year).Append("\n");
sb.Append(" HasFile: ").Append(HasFile).Append("\n");
sb.Append(" YouTubeTrailerId: ").Append(YouTubeTrailerId).Append("\n");
sb.Append(" Studio: ").Append(Studio).Append("\n");
sb.Append(" Path: ").Append(Path).Append("\n");
sb.Append(" RootFolderPath: ").Append(RootFolderPath).Append("\n");
sb.Append(" QualityProfileId: ").Append(QualityProfileId).Append("\n");
sb.Append(" Monitored: ").Append(Monitored).Append("\n");
sb.Append(" MinimumAvailability: ").Append(MinimumAvailability).Append("\n");
sb.Append(" IsAvailable: ").Append(IsAvailable).Append("\n");
sb.Append(" FolderName: ").Append(FolderName).Append("\n");
sb.Append(" Runtime: ").Append(Runtime).Append("\n");
sb.Append(" CleanTitle: ").Append(CleanTitle).Append("\n");
sb.Append(" ImdbId: ").Append(ImdbId).Append("\n");
sb.Append(" TmdbId: ").Append(TmdbId).Append("\n");
sb.Append(" TitleSlug: ").Append(TitleSlug).Append("\n");
sb.Append(" Certification: ").Append(Certification).Append("\n");
sb.Append(" Genres: ").Append(Genres).Append("\n");
sb.Append(" Tags: ").Append(Tags).Append("\n");
sb.Append(" Added: ").Append(Added).Append("\n");
sb.Append(" Ratings: ").Append(Ratings).Append("\n");
sb.Append(" Collection: ").Append(Collection).Append("\n");
sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,100 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class MovieEditorBody {
/// <summary>
/// Gets or Sets MovieIds
/// </summary>
[DataMember(Name="movieIds", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "movieIds")]
public List<int?> MovieIds { get; set; }
/// <summary>
/// Gets or Sets Monitored
/// </summary>
[DataMember(Name="monitored", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "monitored")]
public bool? Monitored { get; set; }
/// <summary>
/// Gets or Sets QualityProfileId
/// </summary>
[DataMember(Name="qualityProfileId", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "qualityProfileId")]
public int? QualityProfileId { get; set; }
/// <summary>
/// Gets or Sets MinimumAvailability
/// </summary>
[DataMember(Name="minimumAvailability", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "minimumAvailability")]
public string MinimumAvailability { get; set; }
/// <summary>
/// Gets or Sets RootFolderPath
/// </summary>
[DataMember(Name="rootFolderPath", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "rootFolderPath")]
public string RootFolderPath { get; set; }
/// <summary>
/// Gets or Sets Tags
/// </summary>
[DataMember(Name="tags", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "tags")]
public List<int?> Tags { get; set; }
/// <summary>
/// Gets or Sets ApplyTags
/// </summary>
[DataMember(Name="applyTags", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "applyTags")]
public string ApplyTags { get; set; }
/// <summary>
/// Gets or Sets MoveFiles
/// </summary>
[DataMember(Name="moveFiles", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "moveFiles")]
public bool? MoveFiles { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class MovieEditorBody {\n");
sb.Append(" MovieIds: ").Append(MovieIds).Append("\n");
sb.Append(" Monitored: ").Append(Monitored).Append("\n");
sb.Append(" QualityProfileId: ").Append(QualityProfileId).Append("\n");
sb.Append(" MinimumAvailability: ").Append(MinimumAvailability).Append("\n");
sb.Append(" RootFolderPath: ").Append(RootFolderPath).Append("\n");
sb.Append(" Tags: ").Append(Tags).Append("\n");
sb.Append(" ApplyTags: ").Append(ApplyTags).Append("\n");
sb.Append(" MoveFiles: ").Append(MoveFiles).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,60 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class MovieEditorBody1 {
/// <summary>
/// Gets or Sets MovieIds
/// </summary>
[DataMember(Name="movieIds", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "movieIds")]
public List<int?> MovieIds { get; set; }
/// <summary>
/// Gets or Sets DeleteFIles
/// </summary>
[DataMember(Name="deleteFIles", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "deleteFIles")]
public bool? DeleteFIles { get; set; }
/// <summary>
/// Gets or Sets AddImportExclusion
/// </summary>
[DataMember(Name="addImportExclusion", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "addImportExclusion")]
public bool? AddImportExclusion { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class MovieEditorBody1 {\n");
sb.Append(" MovieIds: ").Append(MovieIds).Append("\n");
sb.Append(" DeleteFIles: ").Append(DeleteFIles).Append("\n");
sb.Append(" AddImportExclusion: ").Append(AddImportExclusion).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,132 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class MovieFile {
/// <summary>
/// Gets or Sets MovieId
/// </summary>
[DataMember(Name="movieId", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "movieId")]
public int? MovieId { get; set; }
/// <summary>
/// Gets or Sets RelativePath
/// </summary>
[DataMember(Name="relativePath", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "relativePath")]
public string RelativePath { get; set; }
/// <summary>
/// Gets or Sets Path
/// </summary>
[DataMember(Name="path", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "path")]
public string Path { get; set; }
/// <summary>
/// Gets or Sets Size
/// </summary>
[DataMember(Name="size", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "size")]
public decimal? Size { get; set; }
/// <summary>
/// Gets or Sets DateAdded
/// </summary>
[DataMember(Name="dateAdded", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "dateAdded")]
public string DateAdded { get; set; }
/// <summary>
/// Gets or Sets IndexerFlags
/// </summary>
[DataMember(Name="indexerFlags", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "indexerFlags")]
public int? IndexerFlags { get; set; }
/// <summary>
/// Gets or Sets Quality
/// </summary>
[DataMember(Name="quality", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "quality")]
public Quality Quality { get; set; }
/// <summary>
/// Gets or Sets MediaInfo
/// </summary>
[DataMember(Name="mediaInfo", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "mediaInfo")]
public MovieFileMediaInfo MediaInfo { get; set; }
/// <summary>
/// Gets or Sets QualityCutoffNotMet
/// </summary>
[DataMember(Name="qualityCutoffNotMet", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "qualityCutoffNotMet")]
public bool? QualityCutoffNotMet { get; set; }
/// <summary>
/// Gets or Sets Languages
/// </summary>
[DataMember(Name="languages", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "languages")]
public List<HistoryLanguages> Languages { get; set; }
/// <summary>
/// Gets or Sets ReleaseGroup
/// </summary>
[DataMember(Name="releaseGroup", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "releaseGroup")]
public string ReleaseGroup { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public int? Id { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class MovieFile {\n");
sb.Append(" MovieId: ").Append(MovieId).Append("\n");
sb.Append(" RelativePath: ").Append(RelativePath).Append("\n");
sb.Append(" Path: ").Append(Path).Append("\n");
sb.Append(" Size: ").Append(Size).Append("\n");
sb.Append(" DateAdded: ").Append(DateAdded).Append("\n");
sb.Append(" IndexerFlags: ").Append(IndexerFlags).Append("\n");
sb.Append(" Quality: ").Append(Quality).Append("\n");
sb.Append(" MediaInfo: ").Append(MediaInfo).Append("\n");
sb.Append(" QualityCutoffNotMet: ").Append(QualityCutoffNotMet).Append("\n");
sb.Append(" Languages: ").Append(Languages).Append("\n");
sb.Append(" ReleaseGroup: ").Append(ReleaseGroup).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,148 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class MovieFileMediaInfo {
/// <summary>
/// Gets or Sets AudioAdditionalFeatures
/// </summary>
[DataMember(Name="audioAdditionalFeatures", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "audioAdditionalFeatures")]
public string AudioAdditionalFeatures { get; set; }
/// <summary>
/// Gets or Sets AudioBitrate
/// </summary>
[DataMember(Name="audioBitrate", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "audioBitrate")]
public decimal? AudioBitrate { get; set; }
/// <summary>
/// Gets or Sets AudioChannels
/// </summary>
[DataMember(Name="audioChannels", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "audioChannels")]
public decimal? AudioChannels { get; set; }
/// <summary>
/// Gets or Sets AudioCodec
/// </summary>
[DataMember(Name="audioCodec", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "audioCodec")]
public string AudioCodec { get; set; }
/// <summary>
/// Gets or Sets AudioLanguages
/// </summary>
[DataMember(Name="audioLanguages", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "audioLanguages")]
public string AudioLanguages { get; set; }
/// <summary>
/// Gets or Sets AudioStreamCount
/// </summary>
[DataMember(Name="audioStreamCount", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "audioStreamCount")]
public decimal? AudioStreamCount { get; set; }
/// <summary>
/// Gets or Sets VideoBitDepth
/// </summary>
[DataMember(Name="videoBitDepth", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "videoBitDepth")]
public decimal? VideoBitDepth { get; set; }
/// <summary>
/// Gets or Sets VideoBitrate
/// </summary>
[DataMember(Name="videoBitrate", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "videoBitrate")]
public decimal? VideoBitrate { get; set; }
/// <summary>
/// Gets or Sets VideoCodec
/// </summary>
[DataMember(Name="videoCodec", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "videoCodec")]
public string VideoCodec { get; set; }
/// <summary>
/// Gets or Sets VideoFps
/// </summary>
[DataMember(Name="videoFps", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "videoFps")]
public decimal? VideoFps { get; set; }
/// <summary>
/// Gets or Sets Resolution
/// </summary>
[DataMember(Name="resolution", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "resolution")]
public string Resolution { get; set; }
/// <summary>
/// Gets or Sets RunTime
/// </summary>
[DataMember(Name="runTime", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "runTime")]
public string RunTime { get; set; }
/// <summary>
/// Gets or Sets ScanType
/// </summary>
[DataMember(Name="scanType", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "scanType")]
public string ScanType { get; set; }
/// <summary>
/// Gets or Sets Subtitles
/// </summary>
[DataMember(Name="subtitles", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "subtitles")]
public string Subtitles { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class MovieFileMediaInfo {\n");
sb.Append(" AudioAdditionalFeatures: ").Append(AudioAdditionalFeatures).Append("\n");
sb.Append(" AudioBitrate: ").Append(AudioBitrate).Append("\n");
sb.Append(" AudioChannels: ").Append(AudioChannels).Append("\n");
sb.Append(" AudioCodec: ").Append(AudioCodec).Append("\n");
sb.Append(" AudioLanguages: ").Append(AudioLanguages).Append("\n");
sb.Append(" AudioStreamCount: ").Append(AudioStreamCount).Append("\n");
sb.Append(" VideoBitDepth: ").Append(VideoBitDepth).Append("\n");
sb.Append(" VideoBitrate: ").Append(VideoBitrate).Append("\n");
sb.Append(" VideoCodec: ").Append(VideoCodec).Append("\n");
sb.Append(" VideoFps: ").Append(VideoFps).Append("\n");
sb.Append(" Resolution: ").Append(Resolution).Append("\n");
sb.Append(" RunTime: ").Append(RunTime).Append("\n");
sb.Append(" ScanType: ").Append(ScanType).Append("\n");
sb.Append(" Subtitles: ").Append(Subtitles).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,212 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class Notification {
/// <summary>
/// Gets or Sets OnGrab
/// </summary>
[DataMember(Name="onGrab", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "onGrab")]
public bool? OnGrab { get; set; }
/// <summary>
/// Gets or Sets OnDownload
/// </summary>
[DataMember(Name="onDownload", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "onDownload")]
public bool? OnDownload { get; set; }
/// <summary>
/// Gets or Sets OnUpgrade
/// </summary>
[DataMember(Name="onUpgrade", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "onUpgrade")]
public bool? OnUpgrade { get; set; }
/// <summary>
/// Gets or Sets OnRename
/// </summary>
[DataMember(Name="onRename", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "onRename")]
public bool? OnRename { get; set; }
/// <summary>
/// Gets or Sets OnDelete
/// </summary>
[DataMember(Name="onDelete", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "onDelete")]
public bool? OnDelete { get; set; }
/// <summary>
/// Gets or Sets OnHealthIssue
/// </summary>
[DataMember(Name="onHealthIssue", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "onHealthIssue")]
public bool? OnHealthIssue { get; set; }
/// <summary>
/// Gets or Sets SupportsOnGrab
/// </summary>
[DataMember(Name="supportsOnGrab", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "supportsOnGrab")]
public bool? SupportsOnGrab { get; set; }
/// <summary>
/// Gets or Sets SupportsOnDownload
/// </summary>
[DataMember(Name="supportsOnDownload", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "supportsOnDownload")]
public bool? SupportsOnDownload { get; set; }
/// <summary>
/// Gets or Sets SupportsOnUpgrade
/// </summary>
[DataMember(Name="supportsOnUpgrade", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "supportsOnUpgrade")]
public bool? SupportsOnUpgrade { get; set; }
/// <summary>
/// Gets or Sets SupportsOnRename
/// </summary>
[DataMember(Name="supportsOnRename", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "supportsOnRename")]
public bool? SupportsOnRename { get; set; }
/// <summary>
/// Gets or Sets SupportsOnDelete
/// </summary>
[DataMember(Name="supportsOnDelete", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "supportsOnDelete")]
public bool? SupportsOnDelete { get; set; }
/// <summary>
/// Gets or Sets SupportsOnHealthIssue
/// </summary>
[DataMember(Name="supportsOnHealthIssue", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "supportsOnHealthIssue")]
public bool? SupportsOnHealthIssue { get; set; }
/// <summary>
/// Gets or Sets IncludeHealthWarnings
/// </summary>
[DataMember(Name="includeHealthWarnings", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "includeHealthWarnings")]
public bool? IncludeHealthWarnings { get; set; }
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name="name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
/// <summary>
/// Gets or Sets Fields
/// </summary>
[DataMember(Name="fields", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "fields")]
public List<ProviderField> Fields { get; set; }
/// <summary>
/// Gets or Sets ImplementationName
/// </summary>
[DataMember(Name="implementationName", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "implementationName")]
public string ImplementationName { get; set; }
/// <summary>
/// Gets or Sets Implementation
/// </summary>
[DataMember(Name="implementation", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "implementation")]
public string Implementation { get; set; }
/// <summary>
/// Gets or Sets ConfigContract
/// </summary>
[DataMember(Name="configContract", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "configContract")]
public string ConfigContract { get; set; }
/// <summary>
/// Gets or Sets InfoLink
/// </summary>
[DataMember(Name="infoLink", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "infoLink")]
public string InfoLink { get; set; }
/// <summary>
/// Gets or Sets Message
/// </summary>
[DataMember(Name="message", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "message")]
public NotificationMessage Message { get; set; }
/// <summary>
/// Gets or Sets Tags
/// </summary>
[DataMember(Name="tags", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "tags")]
public List<int?> Tags { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public int? Id { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class Notification {\n");
sb.Append(" OnGrab: ").Append(OnGrab).Append("\n");
sb.Append(" OnDownload: ").Append(OnDownload).Append("\n");
sb.Append(" OnUpgrade: ").Append(OnUpgrade).Append("\n");
sb.Append(" OnRename: ").Append(OnRename).Append("\n");
sb.Append(" OnDelete: ").Append(OnDelete).Append("\n");
sb.Append(" OnHealthIssue: ").Append(OnHealthIssue).Append("\n");
sb.Append(" SupportsOnGrab: ").Append(SupportsOnGrab).Append("\n");
sb.Append(" SupportsOnDownload: ").Append(SupportsOnDownload).Append("\n");
sb.Append(" SupportsOnUpgrade: ").Append(SupportsOnUpgrade).Append("\n");
sb.Append(" SupportsOnRename: ").Append(SupportsOnRename).Append("\n");
sb.Append(" SupportsOnDelete: ").Append(SupportsOnDelete).Append("\n");
sb.Append(" SupportsOnHealthIssue: ").Append(SupportsOnHealthIssue).Append("\n");
sb.Append(" IncludeHealthWarnings: ").Append(IncludeHealthWarnings).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" Fields: ").Append(Fields).Append("\n");
sb.Append(" ImplementationName: ").Append(ImplementationName).Append("\n");
sb.Append(" Implementation: ").Append(Implementation).Append("\n");
sb.Append(" ConfigContract: ").Append(ConfigContract).Append("\n");
sb.Append(" InfoLink: ").Append(InfoLink).Append("\n");
sb.Append(" Message: ").Append(Message).Append("\n");
sb.Append(" Tags: ").Append(Tags).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,52 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class NotificationMessage {
/// <summary>
/// Gets or Sets Message
/// </summary>
[DataMember(Name="message", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "message")]
public string Message { get; set; }
/// <summary>
/// Gets or Sets Type
/// </summary>
[DataMember(Name="type", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class NotificationMessage {\n");
sb.Append(" Message: ").Append(Message).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,92 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class ProviderField {
/// <summary>
/// Gets or Sets Order
/// </summary>
[DataMember(Name="order", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "order")]
public int? Order { get; set; }
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name="name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
/// <summary>
/// Gets or Sets Label
/// </summary>
[DataMember(Name="label", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "label")]
public string Label { get; set; }
/// <summary>
/// Gets or Sets HelpText
/// </summary>
[DataMember(Name="helpText", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "helpText")]
public string HelpText { get; set; }
/// <summary>
/// Gets or Sets Value
/// </summary>
[DataMember(Name="value", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "value")]
public string Value { get; set; }
/// <summary>
/// Gets or Sets Type
/// </summary>
[DataMember(Name="type", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
/// <summary>
/// Gets or Sets Advanced
/// </summary>
[DataMember(Name="advanced", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "advanced")]
public bool? Advanced { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class ProviderField {\n");
sb.Append(" Order: ").Append(Order).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" Label: ").Append(Label).Append("\n");
sb.Append(" HelpText: ").Append(HelpText).Append("\n");
sb.Append(" Value: ").Append(Value).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append(" Advanced: ").Append(Advanced).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,52 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class Quality {
/// <summary>
/// Gets or Sets _Quality
/// </summary>
[DataMember(Name="quality", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "quality")]
public QualityQuality _Quality { get; set; }
/// <summary>
/// Gets or Sets Revision
/// </summary>
[DataMember(Name="revision", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "revision")]
public QualityRevision Revision { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class Quality {\n");
sb.Append(" _Quality: ").Append(_Quality).Append("\n");
sb.Append(" Revision: ").Append(Revision).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,108 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class QualityProfile {
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name="name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
/// <summary>
/// Gets or Sets UpgradeAllowed
/// </summary>
[DataMember(Name="upgradeAllowed", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "upgradeAllowed")]
public bool? UpgradeAllowed { get; set; }
/// <summary>
/// Gets or Sets Cutoff
/// </summary>
[DataMember(Name="cutoff", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "cutoff")]
public int? Cutoff { get; set; }
/// <summary>
/// Gets or Sets Items
/// </summary>
[DataMember(Name="items", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "items")]
public List<Object> Items { get; set; }
/// <summary>
/// Gets or Sets MinFormatScore
/// </summary>
[DataMember(Name="minFormatScore", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "minFormatScore")]
public int? MinFormatScore { get; set; }
/// <summary>
/// Gets or Sets CutoffFormatScore
/// </summary>
[DataMember(Name="cutoffFormatScore", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "cutoffFormatScore")]
public int? CutoffFormatScore { get; set; }
/// <summary>
/// Gets or Sets FormatItems
/// </summary>
[DataMember(Name="formatItems", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "formatItems")]
public List<QualityProfileFormatItems> FormatItems { get; set; }
/// <summary>
/// Gets or Sets Language
/// </summary>
[DataMember(Name="language", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "language")]
public QueuedetailsLanguages Language { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public int? Id { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class QualityProfile {\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" UpgradeAllowed: ").Append(UpgradeAllowed).Append("\n");
sb.Append(" Cutoff: ").Append(Cutoff).Append("\n");
sb.Append(" Items: ").Append(Items).Append("\n");
sb.Append(" MinFormatScore: ").Append(MinFormatScore).Append("\n");
sb.Append(" CutoffFormatScore: ").Append(CutoffFormatScore).Append("\n");
sb.Append(" FormatItems: ").Append(FormatItems).Append("\n");
sb.Append(" Language: ").Append(Language).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,60 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class QualityProfileFormatItems {
/// <summary>
/// Gets or Sets Format
/// </summary>
[DataMember(Name="format", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "format")]
public int? Format { get; set; }
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name="name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
/// <summary>
/// Gets or Sets Score
/// </summary>
[DataMember(Name="score", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "score")]
public int? Score { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class QualityProfileFormatItems {\n");
sb.Append(" Format: ").Append(Format).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" Score: ").Append(Score).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,76 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class QualityQuality {
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public int? Id { get; set; }
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name="name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
/// <summary>
/// Gets or Sets Source
/// </summary>
[DataMember(Name="source", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "source")]
public string Source { get; set; }
/// <summary>
/// Gets or Sets Resolution
/// </summary>
[DataMember(Name="resolution", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "resolution")]
public int? Resolution { get; set; }
/// <summary>
/// Gets or Sets Modifier
/// </summary>
[DataMember(Name="modifier", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "modifier")]
public string Modifier { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class QualityQuality {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" Source: ").Append(Source).Append("\n");
sb.Append(" Resolution: ").Append(Resolution).Append("\n");
sb.Append(" Modifier: ").Append(Modifier).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,60 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class QualityRevision {
/// <summary>
/// Gets or Sets Version
/// </summary>
[DataMember(Name="version", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "version")]
public int? Version { get; set; }
/// <summary>
/// Gets or Sets Real
/// </summary>
[DataMember(Name="real", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "real")]
public int? Real { get; set; }
/// <summary>
/// Gets or Sets IsRepack
/// </summary>
[DataMember(Name="isRepack", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "isRepack")]
public bool? IsRepack { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class QualityRevision {\n");
sb.Append(" Version: ").Append(Version).Append("\n");
sb.Append(" Real: ").Append(Real).Append("\n");
sb.Append(" IsRepack: ").Append(IsRepack).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,44 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class QueueBulkBody {
/// <summary>
/// Gets or Sets Ids
/// </summary>
[DataMember(Name="ids", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "ids")]
public List<int?> Ids { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class QueueBulkBody {\n");
sb.Append(" Ids: ").Append(Ids).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,52 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class QueuedetailsLanguages {
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public int? Id { get; set; }
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name="name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class QueuedetailsLanguages {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,52 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class QueuedetailsStatusMessages {
/// <summary>
/// Gets or Sets Title
/// </summary>
[DataMember(Name="title", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "title")]
public string Title { get; set; }
/// <summary>
/// Gets or Sets Messages
/// </summary>
[DataMember(Name="messages", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "messages")]
public List<Object> Messages { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class QueuedetailsStatusMessages {\n");
sb.Append(" Title: ").Append(Title).Append("\n");
sb.Append(" Messages: ").Append(Messages).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,52 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class Rating {
/// <summary>
/// Gets or Sets Votes
/// </summary>
[DataMember(Name="votes", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "votes")]
public int? Votes { get; set; }
/// <summary>
/// Gets or Sets Value
/// </summary>
[DataMember(Name="value", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "value")]
public decimal? Value { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class Rating {\n");
sb.Append(" Votes: ").Append(Votes).Append("\n");
sb.Append(" Value: ").Append(Value).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,52 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class Tag {
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public int? Id { get; set; }
/// <summary>
/// Gets or Sets Label
/// </summary>
[DataMember(Name="label", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "label")]
public string Label { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class Tag {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Label: ").Append(Label).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,92 @@
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace RadarrSharp.Models {
/// <summary>
///
/// </summary>
[DataContract]
public class TagDetail {
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "id")]
public int? Id { get; set; }
/// <summary>
/// Gets or Sets Label
/// </summary>
[DataMember(Name="label", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "label")]
public string Label { get; set; }
/// <summary>
/// Gets or Sets DelayProfileIds
/// </summary>
[DataMember(Name="delayProfileIds", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "delayProfileIds")]
public List<int?> DelayProfileIds { get; set; }
/// <summary>
/// Gets or Sets NotificationIds
/// </summary>
[DataMember(Name="notificationIds", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "notificationIds")]
public List<int?> NotificationIds { get; set; }
/// <summary>
/// Gets or Sets RestrictionIds
/// </summary>
[DataMember(Name="restrictionIds", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "restrictionIds")]
public List<int?> RestrictionIds { get; set; }
/// <summary>
/// Gets or Sets NetImportIds
/// </summary>
[DataMember(Name="netImportIds", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "netImportIds")]
public List<int?> NetImportIds { get; set; }
/// <summary>
/// Gets or Sets MovieIds
/// </summary>
[DataMember(Name="movieIds", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "movieIds")]
public List<int?> MovieIds { get; set; }
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class TagDetail {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Label: ").Append(Label).Append("\n");
sb.Append(" DelayProfileIds: ").Append(DelayProfileIds).Append("\n");
sb.Append(" NotificationIds: ").Append(NotificationIds).Append("\n");
sb.Append(" RestrictionIds: ").Append(RestrictionIds).Append("\n");
sb.Append(" NetImportIds: ").Append(NetImportIds).Append("\n");
sb.Append(" MovieIds: ").Append(MovieIds).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}

@ -0,0 +1,13 @@
using System.Net.Http;
using System.Threading.Tasks;
namespace RadarrSharp.Proxies
{
internal interface IRadarrProxy
{
Task<T> GetAsync<T>(string url);
Task<T> PostAsync<T, U>(string rootUrl, U data);
Task<T> PutAsync<T, U>(string rootUrl, U data);
Task<HttpResponseMessage> DeleteAsync(string rootUrl);
}
}

@ -0,0 +1,53 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace RadarrSharp.Proxies
{
public class RadarrProxy : IRadarrProxy
{
private HttpClient _client;
public RadarrProxy()
{
_client = new HttpClient();
}
public async Task<T> GetAsync<T>(string rootUrl)
{
var resp = await _client.GetAsync(rootUrl);
var content = await resp.Content.ReadAsStringAsync();
return JsonConvert.DeserializeObject<T>(content);
}
public async Task<T> PostAsync<T, U>(string rootUrl, U data)
{
var jsonPayload = JsonConvert.SerializeObject(data);
var response = await _client.PostAsync(rootUrl, PrepJsonForPost(jsonPayload));
var resp = await response.Content.ReadAsStringAsync();
return JsonConvert.DeserializeObject<T>(resp);
}
public async Task<T> PutAsync<T, U>(string rootUrl, U data)
{
var jsonPayload = JsonConvert.SerializeObject(data);
var response = await _client.PutAsync(rootUrl, PrepJsonForPost(jsonPayload));
return JsonConvert.DeserializeObject<T>(await response.Content.ReadAsStringAsync());
}
public async Task<HttpResponseMessage> DeleteAsync(string rootUrl)
{
var resp = await _client.DeleteAsync(rootUrl);
return resp;
}
private StringContent PrepJsonForPost(string jsonObj)
{
return new StringContent(jsonObj, Encoding.UTF8, "application/json");
}
}
}

@ -0,0 +1 @@
Radarr API implementation in c#

@ -0,0 +1,26 @@
using RadarrSharp.Services;
using RadarrSharp.Services.Implementation;
using RadarrSharp.Services.Interface;
namespace RadarrSharp
{
public class RadarrClient
{
public IMovieService Movie;
public IQualityService Quality;
private string _ip, _port, _apiKey;
public RadarrClient(string ip, string port, string apiKey)
{
this._ip = ip;
this._port = port;
this._apiKey = apiKey;
RegisterRadarrServices();
}
private void RegisterRadarrServices()
{
Movie = new MovieService(_ip, _port, _apiKey);
Quality = new QualityService(_ip, _port, _apiKey);
}
}
}

Binary file not shown.

@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<Authors>97WaterPolo</Authors>
<Company>Siglerdev</Company>
<PackageId>RadarrSharp-Siglerdev</PackageId>
<VersionPrefix >1.0.0</VersionPrefix>
<VersionSuffix>42</VersionSuffix>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
<ItemGroup>
<Folder Include="Models\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>
</Project>

@ -0,0 +1,60 @@
using RadarrSharp.Proxies;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace RadarrSharp.Services
{
public abstract class BaseRadarrService
{
private IRadarrProxy _proxy;
private string _ip, _port, _apiKey;
protected BaseRadarrService(string ip, string port, string apiKey)
{
_proxy = new RadarrProxy();
this._ip = ip;
this._port = port;
this._apiKey = apiKey;
}
public async Task<T> GetAsync<T>(string endpoint, IEnumerable<Tuple<string, string>> qParams = null)
{
var resp = await _proxy.GetAsync<T>(GenerateApiUrl(endpoint, qParams));
return resp;
}
public async Task<T> PostAsync<T,U>(string endpoint, U data, IEnumerable<Tuple<string, string>> qParams = null)
{
var resp = await _proxy.PostAsync<T, U>(GenerateApiUrl(endpoint, qParams), data);
return resp;
}
public async Task<T> PutAsync<T, U>(string endpoint, U data, IEnumerable<Tuple<string, string>> qParams = null)
{
var resp = await _proxy.PutAsync<T, U>(GenerateApiUrl(endpoint, qParams), data);
return resp;
}
public async Task<HttpResponseMessage> DeleteAsync(string endpoint, IEnumerable<Tuple<string, string>> qParams = null)
{
var resp = await _proxy.DeleteAsync(GenerateApiUrl(endpoint, qParams));
return resp;
}
protected string GenerateApiUrl(string endpoint, IEnumerable<Tuple<string,string>> qParams = null)
{
StringBuilder url = new StringBuilder($"{_ip}:{_port}/api/v3/{endpoint}?apikey={_apiKey}");
if (qParams != null)
{
foreach (var param in qParams)
{
url.Append($"&{param.Item1}={param.Item2}");
}
}
return url.ToString();
}
}
}

@ -0,0 +1,60 @@
using RadarrSharp.Services.Interface;
using RadarrSharp.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using RadarrSharp.Helpers;
using System.Threading.Tasks;
using System.Web;
namespace RadarrSharp.Services.Implementation
{
public class MovieService : BaseRadarrService, IMovieService
{
public MovieService(string ip, string port, string apiKey) : base(ip, port, apiKey)
{
}
public async Task<IEnumerable<Movie>> GetMovies(string tmdbId = null)
{
var movies = await base.GetAsync<IEnumerable<Movie>>("movie", tmdbId.ToTuple("tmdbId").ToList());
return movies;
}
public async Task<Movie> AddMovie(Movie movie)
{
var resp = await base.PostAsync<Movie, Movie>("movie", movie);
return resp;
}
public async Task<Movie> PutMovie(Movie movie, bool moveFiles)
{
var resp = await base.PutAsync<Movie, Movie>("movie", movie, moveFiles.ToTuple("moveFiles").ToList());
return resp;
}
public async Task<IEnumerable<Movie>> GetMovie(int id)
{
var movies = await base.GetAsync<IEnumerable<Movie>>($"movie/{id}");
return movies;
}
public async Task<bool> DeleteMovie(int id, bool addImportExclusion, bool deleteFiles)
{
var responseMessage = await base.DeleteAsync($"movie/{id}",
RadarrExtensions.ParamList(
addImportExclusion.ToTuple("addImportExclusion"),
deleteFiles.ToTuple("deleteFiles")));
return responseMessage.IsSuccessStatusCode;
}
public async Task<IEnumerable<Movie>> MovieLookup(string searchTerm)
{
searchTerm = HttpUtility.UrlEncode(searchTerm);
var movies = await base.GetAsync<IEnumerable<Movie>>("movie/lookup", searchTerm.ToTuple("term").ToList());
return movies;
}
}
}

@ -0,0 +1,23 @@
using RadarrSharp.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RadarrSharp.Services.Implementation
{
public class QualityService : BaseRadarrService, IQualityService
{
public QualityService(string ip, string port, string apiKey) : base(ip, port, apiKey)
{
}
public async Task<IEnumerable<QualityProfile>> GetQualities()
{
var qualityProfiles = await base.GetAsync<IEnumerable<QualityProfile>>("qualityProfile");
return qualityProfiles;
}
}
}

@ -0,0 +1,17 @@
using RadarrSharp.Models;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace RadarrSharp.Services.Interface
{
public interface IMovieService
{
Task<Movie> AddMovie(Movie movie);
Task<bool> DeleteMovie(int id, bool addImportExclusion, bool deleteFiles);
Task<IEnumerable<Movie>> GetMovie(int id);
Task<IEnumerable<Movie>> GetMovies(string tmdbId = null);
Task<IEnumerable<Movie>> MovieLookup(string searchTerm);
Task<Movie> PutMovie(Movie movie, bool moveFiles);
}
}

@ -0,0 +1,11 @@
using RadarrSharp.Models;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace RadarrSharp.Services.Implementation
{
public interface IQualityService
{
Task<IEnumerable<QualityProfile>> GetQualities();
}
}
Loading…
Cancel
Save