aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Channels/IChannel.cs
diff options
context:
space:
mode:
authorTim Hobbs <jesus.tesh@gmail.com>2014-03-17 20:07:58 -0700
committerTim Hobbs <jesus.tesh@gmail.com>2014-03-17 20:07:58 -0700
commitbea21173b5ba001d39fbbfb1f0a572d2dce887ab (patch)
treee00d218e8aa240eb1e33e24f331dcf1815036781 /MediaBrowser.Controller/Channels/IChannel.cs
parentcf43180a2dcab023ba6a48f37920615d7e87c599 (diff)
parent53749f077bedc84323ac13694c7f0963a65d1f06 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'MediaBrowser.Controller/Channels/IChannel.cs')
-rw-r--r--MediaBrowser.Controller/Channels/IChannel.cs16
1 files changed, 14 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Channels/IChannel.cs b/MediaBrowser.Controller/Channels/IChannel.cs
index ba1bd4083..956eb67e8 100644
--- a/MediaBrowser.Controller/Channels/IChannel.cs
+++ b/MediaBrowser.Controller/Channels/IChannel.cs
@@ -26,13 +26,20 @@ namespace MediaBrowser.Controller.Channels
ChannelCapabilities GetCapabilities();
/// <summary>
+ /// Determines whether [is enabled for] [the specified user].
+ /// </summary>
+ /// <param name="user">The user.</param>
+ /// <returns><c>true</c> if [is enabled for] [the specified user]; otherwise, <c>false</c>.</returns>
+ bool IsEnabledFor(User user);
+
+ /// <summary>
/// Searches the specified search term.
/// </summary>
- /// <param name="searchTerm">The search term.</param>
+ /// <param name="searchInfo">The search information.</param>
/// <param name="user">The user.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{IEnumerable{ChannelItemInfo}}.</returns>
- Task<IEnumerable<ChannelItemInfo>> Search(string searchTerm, User user, CancellationToken cancellationToken);
+ Task<IEnumerable<ChannelItemInfo>> Search(ChannelSearchInfo searchInfo, User user, CancellationToken cancellationToken);
/// <summary>
/// Gets the channel items.
@@ -56,4 +63,9 @@ namespace MediaBrowser.Controller.Channels
{
public bool CanSearch { get; set; }
}
+
+ public class ChannelSearchInfo
+ {
+ public string SearchTerm { get; set; }
+ }
}