added tuner list to tv status page

This commit is contained in:
Luke Pulverenti
2014-01-23 17:15:15 -05:00
parent 8e7b97db52
commit 06563e83c6
10 changed files with 181 additions and 35 deletions

View File

@@ -43,6 +43,13 @@ namespace MediaBrowser.Model.LiveTv
/// </summary>
/// <value><c>true</c> if this instance has update available; otherwise, <c>false</c>.</value>
public bool HasUpdateAvailable { get; set; }
public List<LiveTvTunerInfoDto> Tuners { get; set; }
public LiveTvServiceInfo()
{
Tuners = new List<LiveTvTunerInfoDto>();
}
}
public class GuideInfo
@@ -105,6 +112,62 @@ namespace MediaBrowser.Model.LiveTv
}
}
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; }
/// <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>();
}
}
public enum LiveTvServiceStatus
{
Ok = 0,