RadarrSharp/Models/QualityProfileFormatItems.cs
Xander Sigler 46e403f880
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing
Initial Commit
2022-01-18 12:09:42 -08:00

61 lines
1.6 KiB
C#

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);
}
}
}