2014-01-07 18:39:35 +00:00
|
|
|
|
using System;
|
2014-01-14 20:03:35 +00:00
|
|
|
|
using System.Collections.Generic;
|
2014-01-07 18:39:35 +00:00
|
|
|
|
|
2013-09-26 15:48:14 +00:00
|
|
|
|
namespace MediaBrowser.Model.LiveTv
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class ServiceInfo
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class LiveTvServiceInfo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the name.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name.</value>
|
|
|
|
|
public string Name { get; set; }
|
2014-01-16 17:23:30 +00:00
|
|
|
|
|
2014-01-17 20:51:29 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the home page URL.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The home page URL.</value>
|
|
|
|
|
public string HomePageUrl { get; set; }
|
|
|
|
|
|
2014-01-16 17:23:30 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the status.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The status.</value>
|
|
|
|
|
public LiveTvServiceStatus Status { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the status message.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The status message.</value>
|
|
|
|
|
public string StatusMessage { get; set; }
|
2014-01-17 20:51:29 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the version.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The version.</value>
|
|
|
|
|
public string Version { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether this instance has update available.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if this instance has update available; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool HasUpdateAvailable { get; set; }
|
2014-01-23 22:15:15 +00:00
|
|
|
|
|
|
|
|
|
public List<LiveTvTunerInfoDto> Tuners { get; set; }
|
|
|
|
|
|
|
|
|
|
public LiveTvServiceInfo()
|
|
|
|
|
{
|
|
|
|
|
Tuners = new List<LiveTvTunerInfoDto>();
|
|
|
|
|
}
|
2013-09-26 15:48:14 +00:00
|
|
|
|
}
|
2014-01-07 18:39:35 +00:00
|
|
|
|
|
|
|
|
|
public class GuideInfo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the start date.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The start date.</value>
|
|
|
|
|
public DateTime StartDate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the end date.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The end date.</value>
|
|
|
|
|
public DateTime EndDate { get; set; }
|
|
|
|
|
}
|
2014-01-14 20:03:35 +00:00
|
|
|
|
|
|
|
|
|
public class LiveTvInfo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the services.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The services.</value>
|
|
|
|
|
public List<LiveTvServiceInfo> Services { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the name of the active service.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name of the active service.</value>
|
|
|
|
|
public string ActiveServiceName { get; set; }
|
|
|
|
|
|
2014-01-17 18:23:00 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether this instance is enabled.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if this instance is enabled; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool IsEnabled { get; set; }
|
|
|
|
|
|
2014-01-23 21:09:00 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the enabled users.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The enabled users.</value>
|
|
|
|
|
public List<string> EnabledUsers { get; set; }
|
|
|
|
|
|
2014-01-17 18:23:00 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the status.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The status.</value>
|
|
|
|
|
public LiveTvServiceStatus Status { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the status message.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The status message.</value>
|
|
|
|
|
public string StatusMessage { get; set; }
|
|
|
|
|
|
2014-01-14 20:03:35 +00:00
|
|
|
|
public LiveTvInfo()
|
|
|
|
|
{
|
|
|
|
|
Services = new List<LiveTvServiceInfo>();
|
2014-01-23 21:09:00 +00:00
|
|
|
|
EnabledUsers = new List<string>();
|
2014-01-14 20:03:35 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-01-16 17:23:30 +00:00
|
|
|
|
|
2014-01-23 22:15:15 +00:00
|
|
|
|
public class LiveTvTunerInfoDto
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the type of the source.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The type of the source.</value>
|
|
|
|
|
public string SourceType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the name.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name.</value>
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The identifier.</value>
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the status.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The status.</value>
|
|
|
|
|
public LiveTvTunerStatus Status { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the channel identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The channel identifier.</value>
|
|
|
|
|
public string ChannelId { get; set; }
|
|
|
|
|
|
2014-01-24 18:09:50 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the name of the channel.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name of the channel.</value>
|
|
|
|
|
public string ChannelName { get; set; }
|
|
|
|
|
|
2014-01-23 22:15:15 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the recording identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The recording identifier.</value>
|
|
|
|
|
public string RecordingId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the name of the program.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name of the program.</value>
|
|
|
|
|
public string ProgramName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the clients.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The clients.</value>
|
|
|
|
|
public List<string> Clients { get; set; }
|
|
|
|
|
|
|
|
|
|
public LiveTvTunerInfoDto()
|
|
|
|
|
{
|
|
|
|
|
Clients = new List<string>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-01-16 17:23:30 +00:00
|
|
|
|
public enum LiveTvServiceStatus
|
|
|
|
|
{
|
|
|
|
|
Ok = 0,
|
|
|
|
|
Unavailable = 1
|
|
|
|
|
}
|
2014-01-22 17:22:04 +00:00
|
|
|
|
|
|
|
|
|
public enum LiveTvTunerStatus
|
|
|
|
|
{
|
|
|
|
|
Available = 0,
|
|
|
|
|
Disabled = 1,
|
|
|
|
|
RecordingTv = 2,
|
|
|
|
|
LiveTv = 3
|
|
|
|
|
}
|
2013-09-26 15:48:14 +00:00
|
|
|
|
}
|