aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirectDtos/ProgramDto.cs
blob: 60389b45bf37140026c2fe99453cc89e2eaac13b (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
using System;
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")]
        public string? ProgramId { get; set; }

        /// <summary>
        /// Gets or sets the air date time.
        /// </summary>
        [JsonPropertyName("airDateTime")]
        public DateTime? AirDateTime { get; set; }

        /// <summary>
        /// Gets or sets the duration.
        /// </summary>
        [JsonPropertyName("duration")]
        public int Duration { get; set; }

        /// <summary>
        /// Gets or sets the md5.
        /// </summary>
        [JsonPropertyName("md5")]
        public string? Md5 { get; set; }

        /// <summary>
        /// Gets or sets the list of audio properties.
        /// </summary>
        [JsonPropertyName("audioProperties")]
        public IReadOnlyList<string> AudioProperties { get; set; } = Array.Empty<string>();

        /// <summary>
        /// Gets or sets the list of video properties.
        /// </summary>
        [JsonPropertyName("videoProperties")]
        public IReadOnlyList<string> VideoProperties { get; set; } = Array.Empty<string>();

        /// <summary>
        /// Gets or sets the list of ratings.
        /// </summary>
        [JsonPropertyName("ratings")]
        public IReadOnlyList<RatingDto> Ratings { get; set; } = Array.Empty<RatingDto>();

        /// <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")]
        public MultipartDto? Multipart { get; set; }

        /// <summary>
        /// Gets or sets the live tape delay.
        /// </summary>
        [JsonPropertyName("liveTapeDelay")]
        public string? LiveTapeDelay { get; set; }

        /// <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")]
        public string? IsPremiereOrFinale { get; set; }
    }
}