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 ProviderField { /// /// Gets or Sets Order /// [DataMember(Name="order", EmitDefaultValue=false)] [JsonProperty(PropertyName = "order")] public int? Order { get; set; } /// /// Gets or Sets Name /// [DataMember(Name="name", EmitDefaultValue=false)] [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// Gets or Sets Label /// [DataMember(Name="label", EmitDefaultValue=false)] [JsonProperty(PropertyName = "label")] public string Label { get; set; } /// /// Gets or Sets HelpText /// [DataMember(Name="helpText", EmitDefaultValue=false)] [JsonProperty(PropertyName = "helpText")] public string HelpText { get; set; } /// /// Gets or Sets Value /// [DataMember(Name="value", EmitDefaultValue=false)] [JsonProperty(PropertyName = "value")] public string Value { get; set; } /// /// Gets or Sets Type /// [DataMember(Name="type", EmitDefaultValue=false)] [JsonProperty(PropertyName = "type")] public string Type { get; set; } /// /// Gets or Sets Advanced /// [DataMember(Name="advanced", EmitDefaultValue=false)] [JsonProperty(PropertyName = "advanced")] public bool? Advanced { 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 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(); } /// /// Get the JSON string presentation of the object /// /// JSON string presentation of the object public string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } } }