aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Dto
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-03 21:35:41 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-03 21:35:41 -0500
commit135168b0e0640211aee5cda9285cffb184385e83 (patch)
treeccbdd9a8a5299aa557b888919b1884e5705ed05e /MediaBrowser.Server.Implementations/Dto
parent6da42312441dcdad2fbbd831a219398371340b43 (diff)
support adding additional users to sessions
Diffstat (limited to 'MediaBrowser.Server.Implementations/Dto')
-rw-r--r--MediaBrowser.Server.Implementations/Dto/DtoService.cs15
1 files changed, 11 insertions, 4 deletions
diff --git a/MediaBrowser.Server.Implementations/Dto/DtoService.cs b/MediaBrowser.Server.Implementations/Dto/DtoService.cs
index 4f97a6506..c6c23ac2e 100644
--- a/MediaBrowser.Server.Implementations/Dto/DtoService.cs
+++ b/MediaBrowser.Server.Implementations/Dto/DtoService.cs
@@ -244,7 +244,8 @@ namespace MediaBrowser.Server.Implementations.Dto
ApplicationVersion = session.ApplicationVersion,
CanSeek = session.CanSeek,
QueueableMediaTypes = session.QueueableMediaTypes,
- RemoteEndPoint = session.RemoteEndPoint
+ RemoteEndPoint = session.RemoteEndPoint,
+ AdditionalUsersPresent = session.AdditionalUsersPresent
};
if (session.NowPlayingItem != null)
@@ -252,11 +253,11 @@ namespace MediaBrowser.Server.Implementations.Dto
dto.NowPlayingItem = GetBaseItemInfo(session.NowPlayingItem);
}
- if (session.User != null)
+ if (session.UserId.HasValue)
{
- dto.UserId = session.User.Id.ToString("N");
- dto.UserName = session.User.Name;
+ dto.UserId = session.UserId.Value.ToString("N");
}
+ dto.UserName = session.UserName;
return dto;
}
@@ -769,6 +770,12 @@ namespace MediaBrowser.Server.Implementations.Dto
{
dto.DisplayOrder = hasDisplayOrder.DisplayOrder;
}
+
+ var collectionFolder = item as CollectionFolder;
+ if (collectionFolder != null)
+ {
+ dto.CollectionType = collectionFolder.CollectionType;
+ }
if (fields.Contains(ItemFields.RemoteTrailers))
{