using System;
using System.Collections.Generic;
namespace MediaBrowser.Model.LiveTv
{
///
/// Class ServiceInfo
///
public class LiveTvServiceInfo
{
///
/// Gets or sets the name.
///
/// The name.
public string Name { get; set; }
///
/// Gets or sets the home page URL.
///
/// The home page URL.
public string HomePageUrl { get; set; }
///
/// Gets or sets the status.
///
/// The status.
public LiveTvServiceStatus Status { get; set; }
///
/// Gets or sets the status message.
///
/// The status message.
public string StatusMessage { get; set; }
///
/// Gets or sets the version.
///
/// The version.
public string Version { get; set; }
///
/// Gets or sets a value indicating whether this instance has update available.
///
/// true if this instance has update available; otherwise, false.
public bool HasUpdateAvailable { get; set; }
public List Tuners { get; set; }
public LiveTvServiceInfo()
{
Tuners = new List();
}
}
public class GuideInfo
{
///
/// Gets or sets the start date.
///
/// The start date.
public DateTime StartDate { get; set; }
///
/// Gets or sets the end date.
///
/// The end date.
public DateTime EndDate { get; set; }
}
public class LiveTvInfo
{
///
/// Gets or sets the services.
///
/// The services.
public List Services { get; set; }
///
/// Gets or sets the name of the active service.
///
/// The name of the active service.
public string ActiveServiceName { get; set; }
///
/// Gets or sets a value indicating whether this instance is enabled.
///
/// true if this instance is enabled; otherwise, false.
public bool IsEnabled { get; set; }
///
/// Gets or sets the enabled users.
///
/// The enabled users.
public List EnabledUsers { get; set; }
///
/// Gets or sets the status.
///
/// The status.
public LiveTvServiceStatus Status { get; set; }
///
/// Gets or sets the status message.
///
/// The status message.
public string StatusMessage { get; set; }
public LiveTvInfo()
{
Services = new List();
EnabledUsers = new List();
}
}
public class LiveTvTunerInfoDto
{
///
/// Gets or sets the type of the source.
///
/// The type of the source.
public string SourceType { get; set; }
///
/// Gets or sets the name.
///
/// The name.
public string Name { get; set; }
///
/// Gets or sets the identifier.
///
/// The identifier.
public string Id { get; set; }
///
/// Gets or sets the status.
///
/// The status.
public LiveTvTunerStatus Status { get; set; }
///
/// Gets or sets the channel identifier.
///
/// The channel identifier.
public string ChannelId { get; set; }
///
/// Gets or sets the name of the channel.
///
/// The name of the channel.
public string ChannelName { get; set; }
///
/// Gets or sets the recording identifier.
///
/// The recording identifier.
public string RecordingId { get; set; }
///
/// Gets or sets the name of the program.
///
/// The name of the program.
public string ProgramName { get; set; }
///
/// Gets or sets the clients.
///
/// The clients.
public List Clients { get; set; }
public LiveTvTunerInfoDto()
{
Clients = new List();
}
}
public enum LiveTvServiceStatus
{
Ok = 0,
Unavailable = 1
}
public enum LiveTvTunerStatus
{
Available = 0,
Disabled = 1,
RecordingTv = 2,
LiveTv = 3
}
}