add channels infrastructure

This commit is contained in:
Luke Pulverenti
2014-05-03 00:20:04 -04:00
parent 3228f50895
commit 6936336b82
19 changed files with 437 additions and 60 deletions

View File

@@ -17,16 +17,10 @@ namespace MediaBrowser.Controller.Channels
string Name { get; }
/// <summary>
/// Gets the home page URL.
/// Gets the channel information.
/// </summary>
/// <value>The home page URL.</value>
string HomePageUrl { get; }
/// <summary>
/// Gets the capabilities.
/// </summary>
/// <returns>ChannelCapabilities.</returns>
ChannelCapabilities GetCapabilities();
/// <returns>ChannelInfo.</returns>
ChannelInfo GetChannelInfo();
/// <summary>
/// Determines whether [is enabled for] [the specified user].
@@ -67,9 +61,29 @@ namespace MediaBrowser.Controller.Channels
IEnumerable<ImageType> GetSupportedChannelImages();
}
public class ChannelCapabilities
public class ChannelInfo
{
/// <summary>
/// Gets the home page URL.
/// </summary>
/// <value>The home page URL.</value>
public string HomePageUrl { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance can search.
/// </summary>
/// <value><c>true</c> if this instance can search; otherwise, <c>false</c>.</value>
public bool CanSearch { get; set; }
public List<ChannelMediaType> MediaTypes { get; set; }
public List<ChannelMediaContentType> ContentTypes { get; set; }
public ChannelInfo()
{
MediaTypes = new List<ChannelMediaType>();
ContentTypes = new List<ChannelMediaContentType>();
}
}
public class ChannelSearchInfo