26 lines
593 B
C#
26 lines
593 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace MovieActorLookup.Models.Movie.Movie
|
|
{
|
|
public class ActorMovieFilmography
|
|
{
|
|
[JsonPropertyName("cast")]
|
|
public List<MovieRole> Cast { get; set; }
|
|
}
|
|
|
|
public class MovieRole
|
|
{
|
|
[JsonPropertyName("id")]
|
|
public int Id { get; set; }
|
|
|
|
[JsonPropertyName("title")]
|
|
public string Title { get; set; }
|
|
|
|
[JsonPropertyName("character")]
|
|
public string Character { get; set; }
|
|
|
|
[JsonPropertyName("poster_path")]
|
|
public string PosterPath { get; set; }
|
|
}
|
|
}
|