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.

61 lines
1.6 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 Collection {
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name="name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
/// <summary>
/// Gets or Sets TmdbId
/// </summary>
[DataMember(Name="tmdbId", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "tmdbId")]
public int? TmdbId { get; set; }
/// <summary>
/// Gets or Sets Images
/// </summary>
[DataMember(Name="images", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "images")]
public List<Image> Images { 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 Collection {\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" TmdbId: ").Append(TmdbId).Append("\n");
sb.Append(" Images: ").Append(Images).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);
}
}
}