first push
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
using MovieActorLookup.Models.Movie;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace MovieActorLookup.Models.TvShows
|
||||
{
|
||||
public class TvShow
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("overview")]
|
||||
public string Overview { get; set; }
|
||||
|
||||
[JsonPropertyName("poster_path")]
|
||||
public string PosterPath { get; set; }
|
||||
|
||||
[JsonPropertyName("backdrop_path")]
|
||||
public string BackdropPath { get; set; }
|
||||
|
||||
[JsonPropertyName("first_air_date")]
|
||||
public string FirstAirDate { get; set; }
|
||||
|
||||
[JsonPropertyName("popularity")]
|
||||
public double Popularity { get; set; }
|
||||
|
||||
[JsonPropertyName("vote_average")]
|
||||
public double VoteAverage { get; set; }
|
||||
|
||||
[JsonPropertyName("genre_ids")]
|
||||
public List<int> GenreIds { get; set; } = new List<int>();
|
||||
|
||||
[JsonPropertyName("belongs_to_collection")]
|
||||
public CollectionInfo BelongsToCollection { get; set; }
|
||||
}
|
||||
|
||||
public class CollectionInfo
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("poster_path")]
|
||||
public string PosterPath { get; set; }
|
||||
|
||||
[JsonPropertyName("backdrop_path")]
|
||||
public string BackdropPath { get; set; }
|
||||
}
|
||||
|
||||
public class TvResponse
|
||||
{
|
||||
[JsonPropertyName("page")]
|
||||
public int Page { get; set; }
|
||||
|
||||
[JsonPropertyName("results")]
|
||||
public List<TvShow> Results { get; set; } = new List<TvShow>();
|
||||
|
||||
[JsonPropertyName("total_pages")]
|
||||
public int TotalPages { get; set; }
|
||||
|
||||
[JsonPropertyName("total_results")]
|
||||
public int TotalResults { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user