From 715119b525a026f0f60c9dcaae1d4899cbc6bcda Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 17 May 2014 14:37:40 -0400 Subject: updated nuget --- MediaBrowser.Controller/Session/ISessionController.cs | 6 ++++++ MediaBrowser.Controller/Session/SessionInfo.cs | 13 +++++++++++++ 2 files changed, 19 insertions(+) (limited to 'MediaBrowser.Controller') diff --git a/MediaBrowser.Controller/Session/ISessionController.cs b/MediaBrowser.Controller/Session/ISessionController.cs index 1b50bad47d..5f07b9ff80 100644 --- a/MediaBrowser.Controller/Session/ISessionController.cs +++ b/MediaBrowser.Controller/Session/ISessionController.cs @@ -13,6 +13,12 @@ namespace MediaBrowser.Controller.Session /// true if this instance is session active; otherwise, false. bool IsSessionActive { get; } + /// + /// Gets a value indicating whether [supports media remote control]. + /// + /// true if [supports media remote control]; otherwise, false. + bool SupportsMediaControl { get; } + /// /// Sends the play command. /// diff --git a/MediaBrowser.Controller/Session/SessionInfo.cs b/MediaBrowser.Controller/Session/SessionInfo.cs index 9f5b687cc4..bc0f8a5d16 100644 --- a/MediaBrowser.Controller/Session/SessionInfo.cs +++ b/MediaBrowser.Controller/Session/SessionInfo.cs @@ -139,6 +139,19 @@ namespace MediaBrowser.Controller.Session } } + public bool SupportsMediaControl + { + get + { + if (SessionController != null) + { + return SessionController.SupportsMediaControl; + } + + return false; + } + } + public bool ContainsUser(Guid userId) { return (UserId ?? Guid.Empty) == UserId || AdditionalUsers.Any(i => userId == new Guid(i.UserId)); -- cgit v1.2.3