jellyfin/MediaBrowser.Model/LiveTv/LiveTvServiceInfo.cs
2014-01-16 12:23:30 -05:00

71 lines
1.7 KiB
C#

using System;
using System.Collections.Generic;
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; }
/// <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; }
}
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; }
}
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; }
public LiveTvInfo()
{
Services = new List<LiveTvServiceInfo>();
}
}
public enum LiveTvServiceStatus
{
Ok = 0,
Unavailable = 1
}
}