aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Session/SessionInfo.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-03 21:59:20 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-03 21:59:20 -0500
commitf93fb4650c2e79655222be6f3e81d360c75c8532 (patch)
tree5d1c0894ae3efedc1d8f0eabe31826a2e0f8d01c /MediaBrowser.Controller/Session/SessionInfo.cs
parent135168b0e0640211aee5cda9285cffb184385e83 (diff)
display additional users in dashboard
Diffstat (limited to 'MediaBrowser.Controller/Session/SessionInfo.cs')
-rw-r--r--MediaBrowser.Controller/Session/SessionInfo.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Session/SessionInfo.cs b/MediaBrowser.Controller/Session/SessionInfo.cs
index ce07f5dc4..b05a68a84 100644
--- a/MediaBrowser.Controller/Session/SessionInfo.cs
+++ b/MediaBrowser.Controller/Session/SessionInfo.cs
@@ -2,6 +2,7 @@
using MediaBrowser.Model.Session;
using System;
using System.Collections.Generic;
+using System.Linq;
namespace MediaBrowser.Controller.Session
{
@@ -14,10 +15,10 @@ namespace MediaBrowser.Controller.Session
{
QueueableMediaTypes = new List<string>();
- AdditionalUsersPresent = new List<SessionUserInfo>();
+ AdditionalUsers = new List<SessionUserInfo>();
}
- public List<SessionUserInfo> AdditionalUsersPresent { get; set; }
+ public List<SessionUserInfo> AdditionalUsers { get; set; }
/// <summary>
/// Gets or sets the remote end point.
@@ -172,5 +173,10 @@ namespace MediaBrowser.Controller.Session
return false;
}
}
+
+ public bool ContainsUser(Guid userId)
+ {
+ return (UserId ?? Guid.Empty) == UserId || AdditionalUsers.Any(i => userId == new Guid(i.UserId));
+ }
}
}