jellyfin/MediaBrowser.Controller/LiveTv/ProgramInfo.cs

195 lines
6.5 KiB
C#
Raw Normal View History

2013-11-26 16:22:11 +00:00
using MediaBrowser.Model.LiveTv;
using System;
2013-11-25 20:39:23 +00:00
using System.Collections.Generic;
2013-11-15 21:31:33 +00:00
2013-11-25 20:39:23 +00:00
namespace MediaBrowser.Controller.LiveTv
2013-11-15 21:31:33 +00:00
{
public class ProgramInfo
{
/// <summary>
/// Id of the program.
/// </summary>
public string Id { get; set; }
2013-11-25 16:15:31 +00:00
/// <summary>
/// Gets or sets the channel identifier.
/// </summary>
/// <value>The channel identifier.</value>
public string ChannelId { get; set; }
2013-11-15 21:31:33 +00:00
/// <summary>
/// Name of the program
/// </summary>
public string Name { get; set; }
2013-11-26 02:53:48 +00:00
/// <summary>
/// Gets or sets the official rating.
/// </summary>
/// <value>The official rating.</value>
public string OfficialRating { get; set; }
2013-12-04 20:55:42 +00:00
2013-11-15 21:31:33 +00:00
/// <summary>
2013-12-04 20:55:42 +00:00
/// Gets or sets the overview.
2013-11-15 21:31:33 +00:00
/// </summary>
2013-12-04 20:55:42 +00:00
/// <value>The overview.</value>
public string Overview { get; set; }
2015-08-19 06:12:58 +00:00
/// <summary>
/// Gets or sets the short overview.
/// </summary>
/// <value>The short overview.</value>
public string ShortOverview { get; set; }
2013-11-15 21:31:33 +00:00
/// <summary>
/// The start date of the program, in UTC.
/// </summary>
public DateTime StartDate { get; set; }
/// <summary>
/// The end date of the program, in UTC.
/// </summary>
public DateTime EndDate { get; set; }
/// <summary>
/// Genre of the program.
/// </summary>
2013-11-25 20:39:23 +00:00
public List<string> Genres { get; set; }
2013-11-26 02:53:48 +00:00
/// <summary>
/// Gets or sets the original air date.
/// </summary>
/// <value>The original air date.</value>
public DateTime? OriginalAirDate { get; set; }
2013-12-04 20:55:42 +00:00
/// <summary>
/// Gets or sets a value indicating whether this instance is hd.
/// </summary>
/// <value><c>true</c> if this instance is hd; otherwise, <c>false</c>.</value>
public bool? IsHD { get; set; }
2013-11-26 02:53:48 +00:00
/// <summary>
/// Gets or sets the audio.
/// </summary>
/// <value>The audio.</value>
2013-12-04 20:55:42 +00:00
public ProgramAudio? Audio { get; set; }
2013-11-26 16:22:11 +00:00
/// <summary>
/// Gets or sets the community rating.
/// </summary>
/// <value>The community rating.</value>
public float? CommunityRating { get; set; }
2013-12-02 21:46:22 +00:00
/// <summary>
/// Gets or sets a value indicating whether this instance is repeat.
/// </summary>
/// <value><c>true</c> if this instance is repeat; otherwise, <c>false</c>.</value>
public bool IsRepeat { get; set; }
/// <summary>
/// Gets or sets the episode title.
/// </summary>
/// <value>The episode title.</value>
public string EpisodeTitle { get; set; }
2013-12-13 15:48:48 +00:00
/// <summary>
2013-12-19 21:51:32 +00:00
/// Supply the image path if it can be accessed directly from the file system
2013-12-13 15:48:48 +00:00
/// </summary>
2013-12-19 21:51:32 +00:00
/// <value>The image path.</value>
public string ImagePath { get; set; }
/// <summary>
/// Supply the image url if it can be downloaded
/// </summary>
/// <value>The image URL.</value>
public string ImageUrl { get; set; }
2013-12-18 05:44:46 +00:00
2014-01-23 18:05:41 +00:00
/// <summary>
/// Gets or sets a value indicating whether this instance has image.
/// </summary>
/// <value><c>null</c> if [has image] contains no value, <c>true</c> if [has image]; otherwise, <c>false</c>.</value>
public bool? HasImage { get; set; }
2013-12-18 05:44:46 +00:00
/// <summary>
/// Gets or sets a value indicating whether this instance is movie.
/// </summary>
/// <value><c>true</c> if this instance is movie; otherwise, <c>false</c>.</value>
public bool IsMovie { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is sports.
/// </summary>
/// <value><c>true</c> if this instance is sports; otherwise, <c>false</c>.</value>
public bool IsSports { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is series.
/// </summary>
/// <value><c>true</c> if this instance is series; otherwise, <c>false</c>.</value>
public bool IsSeries { get; set; }
2013-12-19 21:51:32 +00:00
2013-12-20 20:09:49 +00:00
/// <summary>
/// Gets or sets a value indicating whether this instance is live.
/// </summary>
/// <value><c>true</c> if this instance is live; otherwise, <c>false</c>.</value>
public bool IsLive { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is news.
/// </summary>
/// <value><c>true</c> if this instance is news; otherwise, <c>false</c>.</value>
public bool IsNews { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is kids.
/// </summary>
/// <value><c>true</c> if this instance is kids; otherwise, <c>false</c>.</value>
public bool IsKids { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is premiere.
/// </summary>
/// <value><c>true</c> if this instance is premiere; otherwise, <c>false</c>.</value>
public bool IsPremiere { get; set; }
2015-03-14 20:00:32 +00:00
/// <summary>
/// Gets or sets the production year.
/// </summary>
/// <value>The production year.</value>
public int? ProductionYear { get; set; }
2015-08-11 17:47:29 +00:00
/// <summary>
/// Gets or sets the home page URL.
/// </summary>
/// <value>The home page URL.</value>
public string HomePageUrl { get; set; }
/// <summary>
/// Gets or sets the series identifier.
/// </summary>
/// <value>The series identifier.</value>
public string SeriesId { get; set; }
/// <summary>
/// Gets or sets the show identifier.
/// </summary>
/// <value>The show identifier.</value>
public string ShowId { get; set; }
2015-08-19 06:12:58 +00:00
/// <summary>
/// Gets or sets the season number.
/// </summary>
/// <value>The season number.</value>
public int? SeasonNumber { get; set; }
/// <summary>
/// Gets or sets the episode number.
/// </summary>
/// <value>The episode number.</value>
public int? EpisodeNumber { get; set; }
2015-08-22 02:59:10 +00:00
/// <summary>
/// Gets or sets the etag.
/// </summary>
/// <value>The etag.</value>
public string Etag { get; set; }
2015-08-19 06:12:58 +00:00
2013-11-25 20:39:23 +00:00
public ProgramInfo()
{
Genres = new List<string>();
}
2013-11-15 21:31:33 +00:00
}
2013-11-25 20:39:23 +00:00
}