-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTmdbItem.cs
More file actions
37 lines (28 loc) · 1.04 KB
/
TmdbItem.cs
File metadata and controls
37 lines (28 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System.Text.Json.Serialization;
namespace StreamingCatalogs.Services.Tmdb.Dto
{
/// <summary>
/// Represents a single movie or TV show item from the TMDB API.
/// </summary>
public class TmdbItem
{
[JsonPropertyName("id")]
public int Id { get; set; }
[JsonPropertyName("title")]
public string? Title { get; set; } // For movies
[JsonPropertyName("name")]
public string? Name { get; set; } // For TV shows
[JsonPropertyName("overview")]
public string? Overview { get; set; }
[JsonPropertyName("poster_path")]
public string? PosterPath { get; set; }
[JsonPropertyName("backdrop_path")]
public string? BackdropPath { get; set; }
[JsonPropertyName("popularity")]
public double Popularity { get; set; }
[JsonPropertyName("release_date")]
public string? ReleaseDate { get; set; } // For movies
[JsonPropertyName("first_air_date")]
public string? FirstAirDate { get; set; } // For TV shows
}
}