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.
125 lines
3.9 KiB
125 lines
3.9 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 History {
|
||
|
/// <summary>
|
||
|
/// Gets or Sets MovieId
|
||
|
/// </summary>
|
||
|
[DataMember(Name="movieId", EmitDefaultValue=false)]
|
||
|
[JsonProperty(PropertyName = "movieId")]
|
||
|
public decimal? MovieId { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or Sets SourceTitle
|
||
|
/// </summary>
|
||
|
[DataMember(Name="sourceTitle", EmitDefaultValue=false)]
|
||
|
[JsonProperty(PropertyName = "sourceTitle")]
|
||
|
public string SourceTitle { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or Sets Languages
|
||
|
/// </summary>
|
||
|
[DataMember(Name="languages", EmitDefaultValue=false)]
|
||
|
[JsonProperty(PropertyName = "languages")]
|
||
|
public List<HistoryLanguages> Languages { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or Sets Quality
|
||
|
/// </summary>
|
||
|
[DataMember(Name="quality", EmitDefaultValue=false)]
|
||
|
[JsonProperty(PropertyName = "quality")]
|
||
|
public Quality Quality { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or Sets CustomFormats
|
||
|
/// </summary>
|
||
|
[DataMember(Name="customFormats", EmitDefaultValue=false)]
|
||
|
[JsonProperty(PropertyName = "customFormats")]
|
||
|
public List<CustomFormat> CustomFormats { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or Sets QualityCutoffNotMet
|
||
|
/// </summary>
|
||
|
[DataMember(Name="qualityCutoffNotMet", EmitDefaultValue=false)]
|
||
|
[JsonProperty(PropertyName = "qualityCutoffNotMet")]
|
||
|
public bool? QualityCutoffNotMet { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or Sets Date
|
||
|
/// </summary>
|
||
|
[DataMember(Name="date", EmitDefaultValue=false)]
|
||
|
[JsonProperty(PropertyName = "date")]
|
||
|
public string Date { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or Sets DownloadId
|
||
|
/// </summary>
|
||
|
[DataMember(Name="downloadId", EmitDefaultValue=false)]
|
||
|
[JsonProperty(PropertyName = "downloadId")]
|
||
|
public string DownloadId { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or Sets EventType
|
||
|
/// </summary>
|
||
|
[DataMember(Name="eventType", EmitDefaultValue=false)]
|
||
|
[JsonProperty(PropertyName = "eventType")]
|
||
|
public string EventType { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or Sets Data
|
||
|
/// </summary>
|
||
|
[DataMember(Name="data", EmitDefaultValue=false)]
|
||
|
[JsonProperty(PropertyName = "data")]
|
||
|
public Object Data { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or Sets Id
|
||
|
/// </summary>
|
||
|
[DataMember(Name="id", EmitDefaultValue=false)]
|
||
|
[JsonProperty(PropertyName = "id")]
|
||
|
public decimal? Id { 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 History {\n");
|
||
|
sb.Append(" MovieId: ").Append(MovieId).Append("\n");
|
||
|
sb.Append(" SourceTitle: ").Append(SourceTitle).Append("\n");
|
||
|
sb.Append(" Languages: ").Append(Languages).Append("\n");
|
||
|
sb.Append(" Quality: ").Append(Quality).Append("\n");
|
||
|
sb.Append(" CustomFormats: ").Append(CustomFormats).Append("\n");
|
||
|
sb.Append(" QualityCutoffNotMet: ").Append(QualityCutoffNotMet).Append("\n");
|
||
|
sb.Append(" Date: ").Append(Date).Append("\n");
|
||
|
sb.Append(" DownloadId: ").Append(DownloadId).Append("\n");
|
||
|
sb.Append(" EventType: ").Append(EventType).Append("\n");
|
||
|
sb.Append(" Data: ").Append(Data).Append("\n");
|
||
|
sb.Append(" Id: ").Append(Id).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);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|