MovieResult.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System.Collections.Generic;
  2. using MediaBrowser.Providers.Plugins.Tmdb.Models.General;
  3. namespace MediaBrowser.Providers.Plugins.Tmdb.Models.Movies
  4. {
  5. public class MovieResult
  6. {
  7. public bool Adult { get; set; }
  8. public string Backdrop_Path { get; set; }
  9. public BelongsToCollection Belongs_To_Collection { get; set; }
  10. public int Budget { get; set; }
  11. public List<Genre> Genres { get; set; }
  12. public string Homepage { get; set; }
  13. public int Id { get; set; }
  14. public string Imdb_Id { get; set; }
  15. public string Original_Title { get; set; }
  16. public string Original_Name { get; set; }
  17. public string Overview { get; set; }
  18. public double Popularity { get; set; }
  19. public string Poster_Path { get; set; }
  20. public List<ProductionCompany> Production_Companies { get; set; }
  21. public List<ProductionCountry> Production_Countries { get; set; }
  22. public string Release_Date { get; set; }
  23. public int Revenue { get; set; }
  24. public int Runtime { get; set; }
  25. public List<SpokenLanguage> Spoken_Languages { get; set; }
  26. public string Status { get; set; }
  27. public string Tagline { get; set; }
  28. public string Title { get; set; }
  29. public string Name { get; set; }
  30. public double Vote_Average { get; set; }
  31. public int Vote_Count { get; set; }
  32. public Casts Casts { get; set; }
  33. public Releases Releases { get; set; }
  34. public Images Images { get; set; }
  35. public Keywords Keywords { get; set; }
  36. public Trailers Trailers { get; set; }
  37. public string GetOriginalTitle()
  38. {
  39. return Original_Name ?? Original_Title;
  40. }
  41. public string GetTitle()
  42. {
  43. return Name ?? Title ?? GetOriginalTitle();
  44. }
  45. }
  46. }