using System; using System.Text; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using Newtonsoft.Json; namespace RadarrSharp.Models { /// /// /// [DataContract] public class Indexer { /// /// Gets or Sets EnableRss /// [DataMember(Name="enableRss", EmitDefaultValue=false)] [JsonProperty(PropertyName = "enableRss")] public bool? EnableRss { get; set; } /// /// Gets or Sets EnableAutomaticSearch /// [DataMember(Name="enableAutomaticSearch", EmitDefaultValue=false)] [JsonProperty(PropertyName = "enableAutomaticSearch")] public bool? EnableAutomaticSearch { get; set; } /// /// Gets or Sets EnableInteractiveSearch /// [DataMember(Name="enableInteractiveSearch", EmitDefaultValue=false)] [JsonProperty(PropertyName = "enableInteractiveSearch")] public bool? EnableInteractiveSearch { get; set; } /// /// Gets or Sets SupportsRss /// [DataMember(Name="supportsRss", EmitDefaultValue=false)] [JsonProperty(PropertyName = "supportsRss")] public bool? SupportsRss { get; set; } /// /// Gets or Sets SupportsSearch /// [DataMember(Name="supportsSearch", EmitDefaultValue=false)] [JsonProperty(PropertyName = "supportsSearch")] public bool? SupportsSearch { get; set; } /// /// Gets or Sets Protocol /// [DataMember(Name="protocol", EmitDefaultValue=false)] [JsonProperty(PropertyName = "protocol")] public string Protocol { get; set; } /// /// Gets or Sets Priority /// [DataMember(Name="priority", EmitDefaultValue=false)] [JsonProperty(PropertyName = "priority")] public int? Priority { get; set; } /// /// Gets or Sets Name /// [DataMember(Name="name", EmitDefaultValue=false)] [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// Gets or Sets Fields /// [DataMember(Name="fields", EmitDefaultValue=false)] [JsonProperty(PropertyName = "fields")] public List Fields { get; set; } /// /// Gets or Sets ImplementationName /// [DataMember(Name="implementationName", EmitDefaultValue=false)] [JsonProperty(PropertyName = "implementationName")] public string ImplementationName { get; set; } /// /// Gets or Sets Implementation /// [DataMember(Name="implementation", EmitDefaultValue=false)] [JsonProperty(PropertyName = "implementation")] public string Implementation { get; set; } /// /// Gets or Sets ConfigContract /// [DataMember(Name="configContract", EmitDefaultValue=false)] [JsonProperty(PropertyName = "configContract")] public string ConfigContract { get; set; } /// /// Gets or Sets InfoLink /// [DataMember(Name="infoLink", EmitDefaultValue=false)] [JsonProperty(PropertyName = "infoLink")] public string InfoLink { get; set; } /// /// Gets or Sets Tags /// [DataMember(Name="tags", EmitDefaultValue=false)] [JsonProperty(PropertyName = "tags")] public List Tags { get; set; } /// /// Gets or Sets Id /// [DataMember(Name="id", EmitDefaultValue=false)] [JsonProperty(PropertyName = "id")] public decimal? Id { get; set; } /// /// Get the string presentation of the object /// /// String presentation of the object 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(); } /// /// Get the JSON string presentation of the object /// /// JSON string presentation of the object public string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } } }