Movie Table (#2)

* Table to search movies implemented
* OMDB service for API connection

Reviewed-on: #2
Co-authored-by: Berack96 <giacomobertolazzi7@gmail.com>
Co-committed-by: Berack96 <giacomobertolazzi7@gmail.com>
This commit was merged in pull request #2.
This commit is contained in:
2026-01-20 12:12:55 +01:00
committed by Giacomo Bertolazzi
parent 34aef8b8bc
commit 54814cbcce
11 changed files with 210 additions and 4 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";
}