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.
93 lines
2.8 KiB
93 lines
2.8 KiB
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 CustomFormatSpecifications {
|
|
/// <summary>
|
|
/// Gets or Sets Name
|
|
/// </summary>
|
|
[DataMember(Name="name", EmitDefaultValue=false)]
|
|
[JsonProperty(PropertyName = "name")]
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or Sets Implementation
|
|
/// </summary>
|
|
[DataMember(Name="implementation", EmitDefaultValue=false)]
|
|
[JsonProperty(PropertyName = "implementation")]
|
|
public string Implementation { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or Sets ImplementationName
|
|
/// </summary>
|
|
[DataMember(Name="implementationName", EmitDefaultValue=false)]
|
|
[JsonProperty(PropertyName = "implementationName")]
|
|
public string ImplementationName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or Sets InfoLink
|
|
/// </summary>
|
|
[DataMember(Name="infoLink", EmitDefaultValue=false)]
|
|
[JsonProperty(PropertyName = "infoLink")]
|
|
public string InfoLink { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or Sets Negate
|
|
/// </summary>
|
|
[DataMember(Name="negate", EmitDefaultValue=false)]
|
|
[JsonProperty(PropertyName = "negate")]
|
|
public bool? Negate { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or Sets Required
|
|
/// </summary>
|
|
[DataMember(Name="required", EmitDefaultValue=false)]
|
|
[JsonProperty(PropertyName = "required")]
|
|
public bool? Required { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or Sets Fields
|
|
/// </summary>
|
|
[DataMember(Name="fields", EmitDefaultValue=false)]
|
|
[JsonProperty(PropertyName = "fields")]
|
|
public List<ProviderField> Fields { 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 CustomFormatSpecifications {\n");
|
|
sb.Append(" Name: ").Append(Name).Append("\n");
|
|
sb.Append(" Implementation: ").Append(Implementation).Append("\n");
|
|
sb.Append(" ImplementationName: ").Append(ImplementationName).Append("\n");
|
|
sb.Append(" InfoLink: ").Append(InfoLink).Append("\n");
|
|
sb.Append(" Negate: ").Append(Negate).Append("\n");
|
|
sb.Append(" Required: ").Append(Required).Append("\n");
|
|
sb.Append(" Fields: ").Append(Fields).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);
|
|
}
|
|
|
|
}
|
|
}
|