From d365e1df238acfdc974ea8f42668d2c88a3d961f Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 5 Jan 2014 00:34:06 -0500 Subject: fixes #574 - Add ability to report playable media types --- MediaBrowser.Controller/Session/SessionInfo.cs | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'MediaBrowser.Controller/Session') diff --git a/MediaBrowser.Controller/Session/SessionInfo.cs b/MediaBrowser.Controller/Session/SessionInfo.cs index b05a68a842..f84204d11b 100644 --- a/MediaBrowser.Controller/Session/SessionInfo.cs +++ b/MediaBrowser.Controller/Session/SessionInfo.cs @@ -1,4 +1,5 @@ using MediaBrowser.Controller.Entities; +using MediaBrowser.Model.Entities; using MediaBrowser.Model.Session; using System; using System.Collections.Generic; @@ -14,12 +15,20 @@ namespace MediaBrowser.Controller.Session public SessionInfo() { QueueableMediaTypes = new List(); + PlayableMediaTypes = new List + { + MediaType.Audio, + MediaType.Book, + MediaType.Game, + MediaType.Photo, + MediaType.Video + }; AdditionalUsers = new List(); } public List AdditionalUsers { get; set; } - + /// /// Gets or sets the remote end point. /// @@ -37,7 +46,13 @@ namespace MediaBrowser.Controller.Session /// /// The queueable media types. public List QueueableMediaTypes { get; set; } - + + /// + /// Gets or sets the playable media types. + /// + /// The playable media types. + public List PlayableMediaTypes { get; set; } + /// /// Gets or sets the id. /// @@ -169,7 +184,7 @@ namespace MediaBrowser.Controller.Session { return SessionController.SupportsMediaRemoteControl; } - + return false; } } -- cgit v1.2.3