models Movie, MovieSearch

This commit is contained in:
2026-01-19 20:22:55 +01:00
parent 5a561f9fff
commit 2751b4181d
4 changed files with 60 additions and 13 deletions

20
Models/Movie.cs Normal file
View File

@@ -0,0 +1,20 @@
using System.Text.Json.Serialization;
/// <summary>
/// Rappresenta un film con le sue proprietà principali.
/// Non ho preso tutte le proprietà disponibili dall'API OMDB, solo quelle richieste.
/// </summary>
class Movie
{
public required string Title { get; set; }
public required string Year { get; set; }
[JsonPropertyName("imdbID")]
public required string IdIMDB { get; set; }
public required string Poster { get; set; }
public string Runtime { get; set; } = "N/A";
public string Plot { get; set; } = "N/A";
}