24 lines
591 B
C#
24 lines
591 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace WatchIt.Common.Model.Movies;
|
|
|
|
public class Movie
|
|
{
|
|
[JsonPropertyName("title")]
|
|
public required string Title { get; set; }
|
|
|
|
[JsonPropertyName("original_title")]
|
|
public string? OriginalTitle { get; set; }
|
|
|
|
[JsonPropertyName("description")]
|
|
public string? Description { get; set; }
|
|
|
|
[JsonPropertyName("release_date")]
|
|
public DateOnly? ReleaseDate { get; set; }
|
|
|
|
[JsonPropertyName("length")]
|
|
public short? Length { get; set; }
|
|
|
|
[JsonPropertyName("budget")]
|
|
public decimal? Budget { get; set; }
|
|
} |