jellyfin/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirectDtos/ProgramDto.cs

91 lines
2.7 KiB
C#
Raw Normal View History

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 dto.
/// </summary>
public class ProgramDto
{
/// <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 air date time.
/// </summary>
[JsonPropertyName("airDateTime")]
2021-09-03 20:35:52 +02:00
public DateTime? AirDateTime { get; set; }
2021-08-29 00:32:50 +02:00
/// <summary>
/// Gets or sets the duration.
/// </summary>
[JsonPropertyName("duration")]
public int Duration { get; set; }
/// <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 audio properties.
/// </summary>
[JsonPropertyName("audioProperties")]
2021-09-03 18:59:40 +02:00
public IReadOnlyList<string> AudioProperties { get; set; } = Array.Empty<string>();
2021-08-29 00:32:50 +02:00
/// <summary>
/// Gets or sets the list of video properties.
/// </summary>
[JsonPropertyName("videoProperties")]
2021-09-03 18:59:40 +02:00
public IReadOnlyList<string> VideoProperties { get; set; } = Array.Empty<string>();
2021-08-29 00:32:50 +02:00
/// <summary>
/// Gets or sets the list of ratings.
/// </summary>
[JsonPropertyName("ratings")]
2021-09-03 18:59:40 +02:00
public IReadOnlyList<RatingDto> Ratings { get; set; } = Array.Empty<RatingDto>();
2021-08-29 00:32:50 +02:00
/// <summary>
/// Gets or sets a value indicating whether this program is new.
/// </summary>
[JsonPropertyName("new")]
public bool? New { get; set; }
/// <summary>
/// Gets or sets the multipart object.
/// </summary>
[JsonPropertyName("multipart")]
2021-09-03 18:59:40 +02:00
public MultipartDto? Multipart { get; set; }
2021-08-29 00:32:50 +02:00
/// <summary>
/// Gets or sets the live tape delay.
/// </summary>
[JsonPropertyName("liveTapeDelay")]
2021-09-03 18:59:40 +02:00
public string? LiveTapeDelay { get; set; }
2021-08-29 00:32:50 +02:00
/// <summary>
/// Gets or sets a value indicating whether this is the premiere.
/// </summary>
[JsonPropertyName("premiere")]
public bool Premiere { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this is a repeat.
/// </summary>
[JsonPropertyName("repeat")]
public bool Repeat { get; set; }
/// <summary>
/// Gets or sets the premiere or finale.
/// </summary>
[JsonPropertyName("isPremiereOrFinale")]
2021-09-03 18:59:40 +02:00
public string? IsPremiereOrFinale { get; set; }
2021-08-29 00:32:50 +02:00
}
}