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 MovieFile { /// /// Gets or Sets MovieId /// [DataMember(Name="movieId", EmitDefaultValue=false)] [JsonProperty(PropertyName = "movieId")] public int? MovieId { get; set; } /// /// Gets or Sets RelativePath /// [DataMember(Name="relativePath", EmitDefaultValue=false)] [JsonProperty(PropertyName = "relativePath")] public string RelativePath { get; set; } /// /// Gets or Sets Path /// [DataMember(Name="path", EmitDefaultValue=false)] [JsonProperty(PropertyName = "path")] public string Path { get; set; } /// /// Gets or Sets Size /// [DataMember(Name="size", EmitDefaultValue=false)] [JsonProperty(PropertyName = "size")] public decimal? Size { get; set; } /// /// Gets or Sets DateAdded /// [DataMember(Name="dateAdded", EmitDefaultValue=false)] [JsonProperty(PropertyName = "dateAdded")] public string DateAdded { get; set; } /// /// Gets or Sets IndexerFlags /// [DataMember(Name="indexerFlags", EmitDefaultValue=false)] [JsonProperty(PropertyName = "indexerFlags")] public int? IndexerFlags { get; set; } /// /// Gets or Sets Quality /// [DataMember(Name="quality", EmitDefaultValue=false)] [JsonProperty(PropertyName = "quality")] public Quality Quality { get; set; } /// /// Gets or Sets MediaInfo /// [DataMember(Name="mediaInfo", EmitDefaultValue=false)] [JsonProperty(PropertyName = "mediaInfo")] public MovieFileMediaInfo MediaInfo { get; set; } /// /// Gets or Sets QualityCutoffNotMet /// [DataMember(Name="qualityCutoffNotMet", EmitDefaultValue=false)] [JsonProperty(PropertyName = "qualityCutoffNotMet")] public bool? QualityCutoffNotMet { get; set; } /// /// Gets or Sets Languages /// [DataMember(Name="languages", EmitDefaultValue=false)] [JsonProperty(PropertyName = "languages")] public List Languages { get; set; } /// /// Gets or Sets ReleaseGroup /// [DataMember(Name="releaseGroup", EmitDefaultValue=false)] [JsonProperty(PropertyName = "releaseGroup")] public string ReleaseGroup { 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 MovieFile {\n"); sb.Append(" MovieId: ").Append(MovieId).Append("\n"); sb.Append(" RelativePath: ").Append(RelativePath).Append("\n"); sb.Append(" Path: ").Append(Path).Append("\n"); sb.Append(" Size: ").Append(Size).Append("\n"); sb.Append(" DateAdded: ").Append(DateAdded).Append("\n"); sb.Append(" IndexerFlags: ").Append(IndexerFlags).Append("\n"); sb.Append(" Quality: ").Append(Quality).Append("\n"); sb.Append(" MediaInfo: ").Append(MediaInfo).Append("\n"); sb.Append(" QualityCutoffNotMet: ").Append(QualityCutoffNotMet).Append("\n"); sb.Append(" Languages: ").Append(Languages).Append("\n"); sb.Append(" ReleaseGroup: ").Append(ReleaseGroup).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); } } }