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 Notification { /// /// Gets or Sets OnGrab /// [DataMember(Name="onGrab", EmitDefaultValue=false)] [JsonProperty(PropertyName = "onGrab")] public bool? OnGrab { get; set; } /// /// Gets or Sets OnDownload /// [DataMember(Name="onDownload", EmitDefaultValue=false)] [JsonProperty(PropertyName = "onDownload")] public bool? OnDownload { get; set; } /// /// Gets or Sets OnUpgrade /// [DataMember(Name="onUpgrade", EmitDefaultValue=false)] [JsonProperty(PropertyName = "onUpgrade")] public bool? OnUpgrade { get; set; } /// /// Gets or Sets OnRename /// [DataMember(Name="onRename", EmitDefaultValue=false)] [JsonProperty(PropertyName = "onRename")] public bool? OnRename { get; set; } /// /// Gets or Sets OnDelete /// [DataMember(Name="onDelete", EmitDefaultValue=false)] [JsonProperty(PropertyName = "onDelete")] public bool? OnDelete { get; set; } /// /// Gets or Sets OnHealthIssue /// [DataMember(Name="onHealthIssue", EmitDefaultValue=false)] [JsonProperty(PropertyName = "onHealthIssue")] public bool? OnHealthIssue { get; set; } /// /// Gets or Sets SupportsOnGrab /// [DataMember(Name="supportsOnGrab", EmitDefaultValue=false)] [JsonProperty(PropertyName = "supportsOnGrab")] public bool? SupportsOnGrab { get; set; } /// /// Gets or Sets SupportsOnDownload /// [DataMember(Name="supportsOnDownload", EmitDefaultValue=false)] [JsonProperty(PropertyName = "supportsOnDownload")] public bool? SupportsOnDownload { get; set; } /// /// Gets or Sets SupportsOnUpgrade /// [DataMember(Name="supportsOnUpgrade", EmitDefaultValue=false)] [JsonProperty(PropertyName = "supportsOnUpgrade")] public bool? SupportsOnUpgrade { get; set; } /// /// Gets or Sets SupportsOnRename /// [DataMember(Name="supportsOnRename", EmitDefaultValue=false)] [JsonProperty(PropertyName = "supportsOnRename")] public bool? SupportsOnRename { get; set; } /// /// Gets or Sets SupportsOnDelete /// [DataMember(Name="supportsOnDelete", EmitDefaultValue=false)] [JsonProperty(PropertyName = "supportsOnDelete")] public bool? SupportsOnDelete { get; set; } /// /// Gets or Sets SupportsOnHealthIssue /// [DataMember(Name="supportsOnHealthIssue", EmitDefaultValue=false)] [JsonProperty(PropertyName = "supportsOnHealthIssue")] public bool? SupportsOnHealthIssue { get; set; } /// /// Gets or Sets IncludeHealthWarnings /// [DataMember(Name="includeHealthWarnings", EmitDefaultValue=false)] [JsonProperty(PropertyName = "includeHealthWarnings")] public bool? IncludeHealthWarnings { 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 Message /// [DataMember(Name="message", EmitDefaultValue=false)] [JsonProperty(PropertyName = "message")] public NotificationMessage Message { 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 int? 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 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(); } /// /// Get the JSON string presentation of the object /// /// JSON string presentation of the object public string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } } }