2021-09-03 18:59:40 +02:00
|
|
|
using System;
|
2021-08-29 00:32:50 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Program details dto.
|
|
|
|
/// </summary>
|
|
|
|
public class ProgramDetailsDto
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the audience.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("audience")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public string? Audience { get; set; }
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the program id.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("programID")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public string? ProgramId { get; set; }
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the list of titles.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("titles")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public IReadOnlyList<TitleDto> Titles { get; set; } = Array.Empty<TitleDto>();
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the event details object.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("eventDetails")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public EventDetailsDto? EventDetails { get; set; }
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the descriptions.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("descriptions")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public DescriptionsProgramDto? Descriptions { get; set; }
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the original air date.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("originalAirDate")]
|
2021-09-03 20:35:52 +02:00
|
|
|
public DateTime? OriginalAirDate { get; set; }
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the list of genres.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("genres")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public IReadOnlyList<string> Genres { get; set; } = Array.Empty<string>();
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the episode title.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("episodeTitle150")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public string? EpisodeTitle150 { get; set; }
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the list of metadata.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("metadata")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public IReadOnlyList<MetadataProgramsDto> Metadata { get; set; } = Array.Empty<MetadataProgramsDto>();
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the list of content raitings.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("contentRating")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public IReadOnlyList<ContentRatingDto> ContentRating { get; set; } = Array.Empty<ContentRatingDto>();
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the list of cast.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("cast")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public IReadOnlyList<CastDto> Cast { get; set; } = Array.Empty<CastDto>();
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the list of crew.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("crew")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public IReadOnlyList<CrewDto> Crew { get; set; } = Array.Empty<CrewDto>();
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the entity type.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("entityType")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public string? EntityType { get; set; }
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the show type.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("showType")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public string? ShowType { get; set; }
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether there is image artwork.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("hasImageArtwork")]
|
|
|
|
public bool HasImageArtwork { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the primary image.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("primaryImage")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public string? PrimaryImage { get; set; }
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the thumb image.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("thumbImage")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public string? ThumbImage { get; set; }
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the backdrop image.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("backdropImage")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public string? BackdropImage { get; set; }
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the banner image.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("bannerImage")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public string? BannerImage { get; set; }
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the image id.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("imageID")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public string? ImageId { get; set; }
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the md5.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("md5")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public string? Md5 { get; set; }
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the list of content advisory.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("contentAdvisory")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public IReadOnlyList<string> ContentAdvisory { get; set; } = Array.Empty<string>();
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the movie object.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("movie")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public MovieDto? Movie { get; set; }
|
2021-08-29 00:32:50 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the list of recommendations.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("recommendations")]
|
2021-09-03 18:59:40 +02:00
|
|
|
public IReadOnlyList<RecommendationDto> Recommendations { get; set; } = Array.Empty<RecommendationDto>();
|
2021-08-29 00:32:50 +02:00
|
|
|
}
|
|
|
|
}
|