You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.1 KiB

3 years ago
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);
}
}
}