* 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>
20 lines
549 B
C#
20 lines
549 B
C#
|
|
|
|
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";
|
|
|
|
} |