2020-06-19 11:24:13 -07:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-08-18 04:20:52 -07:00
|
|
|
using System.Collections.Generic;
|
2020-05-30 23:23:09 -07:00
|
|
|
using MediaBrowser.Providers.Plugins.Tmdb.Models.General;
|
2019-08-18 04:20:52 -07:00
|
|
|
|
2020-05-30 23:23:09 -07:00
|
|
|
namespace MediaBrowser.Providers.Plugins.Tmdb.Models.Movies
|
2019-08-18 04:20:52 -07:00
|
|
|
{
|
|
|
|
public class MovieResult
|
|
|
|
{
|
2019-08-18 05:44:13 -07:00
|
|
|
public bool Adult { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public string Backdrop_Path { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public BelongsToCollection Belongs_To_Collection { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public int Budget { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public List<Genre> Genres { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public string Homepage { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public int Id { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public string Imdb_Id { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public string Original_Title { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public string Original_Name { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public string Overview { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public double Popularity { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public string Poster_Path { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public List<ProductionCompany> Production_Companies { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public List<ProductionCountry> Production_Countries { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public string Release_Date { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public int Revenue { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public int Runtime { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public List<SpokenLanguage> Spoken_Languages { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public string Status { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public string Tagline { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public string Title { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public string Name { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public double Vote_Average { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public int Vote_Count { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public Casts Casts { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public Releases Releases { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public Images Images { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public Keywords Keywords { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2019-08-18 05:44:13 -07:00
|
|
|
public Trailers Trailers { get; set; }
|
2019-08-18 04:20:52 -07:00
|
|
|
|
|
|
|
public string GetOriginalTitle()
|
|
|
|
{
|
2019-08-18 05:44:13 -07:00
|
|
|
return Original_Name ?? Original_Title;
|
2019-08-18 04:20:52 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
public string GetTitle()
|
|
|
|
{
|
2019-08-18 05:44:13 -07:00
|
|
|
return Name ?? Title ?? GetOriginalTitle();
|
2019-08-18 04:20:52 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|