aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-09 13:38:02 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-09 13:38:02 -0400
commite1f8c18b516f5bd31f64b8faaa53266a3daddd7a (patch)
treeb7f3212a71d19dfd99f44d50ba1fa85aa8e81b6b /MediaBrowser.Model
parentf57cec4cff8feff70e62056549ea19bbd6a8316c (diff)
added ability to track web sockets per session
Diffstat (limited to 'MediaBrowser.Model')
-rw-r--r--MediaBrowser.Model/Entities/BaseItemInfo.cs22
-rw-r--r--MediaBrowser.Model/MediaBrowser.Model.csproj2
-rw-r--r--MediaBrowser.Model/Session/SessionInfo.cs (renamed from MediaBrowser.Model/Connectivity/ClientConnectionInfo.cs)12
3 files changed, 16 insertions, 20 deletions
diff --git a/MediaBrowser.Model/Entities/BaseItemInfo.cs b/MediaBrowser.Model/Entities/BaseItemInfo.cs
index dc7b3bebe..0d8e35cc9 100644
--- a/MediaBrowser.Model/Entities/BaseItemInfo.cs
+++ b/MediaBrowser.Model/Entities/BaseItemInfo.cs
@@ -27,6 +27,12 @@ namespace MediaBrowser.Model.Entities
public string Type { get; set; }
/// <summary>
+ /// Gets or sets the type of the media.
+ /// </summary>
+ /// <value>The type of the media.</value>
+ public string MediaType { get; set; }
+
+ /// <summary>
/// Gets or sets a value indicating whether this instance is folder.
/// </summary>
/// <value><c>true</c> if this instance is folder; otherwise, <c>false</c>.</value>
@@ -45,12 +51,6 @@ namespace MediaBrowser.Model.Entities
public Guid? PrimaryImageTag { get; set; }
/// <summary>
- /// Gets or sets the backdrop image tag.
- /// </summary>
- /// <value>The backdrop image tag.</value>
- public Guid? BackdropImageTag { get; set; }
-
- /// <summary>
/// Gets a value indicating whether this instance has primary image.
/// </summary>
/// <value><c>true</c> if this instance has primary image; otherwise, <c>false</c>.</value>
@@ -59,15 +59,5 @@ namespace MediaBrowser.Model.Entities
{
get { return PrimaryImageTag.HasValue; }
}
-
- /// <summary>
- /// Gets a value indicating whether this instance has backdrop.
- /// </summary>
- /// <value><c>true</c> if this instance has backdrop; otherwise, <c>false</c>.</value>
- [IgnoreDataMember]
- public bool HasBackdrop
- {
- get { return BackdropImageTag.HasValue; }
- }
}
}
diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj
index 707e6ea4d..dbfe38698 100644
--- a/MediaBrowser.Model/MediaBrowser.Model.csproj
+++ b/MediaBrowser.Model/MediaBrowser.Model.csproj
@@ -56,7 +56,7 @@
<Compile Include="Querying\ArtistsQuery.cs" />
<Compile Include="Querying\ItemsByNameQuery.cs" />
<Compile Include="Entities\BaseItemInfo.cs" />
- <Compile Include="Connectivity\ClientConnectionInfo.cs" />
+ <Compile Include="Session\SessionInfo.cs" />
<Compile Include="Entities\ImageDownloadOptions.cs" />
<Compile Include="Logging\ILogManager.cs" />
<Compile Include="MediaInfo\BlurayDiscInfo.cs" />
diff --git a/MediaBrowser.Model/Connectivity/ClientConnectionInfo.cs b/MediaBrowser.Model/Session/SessionInfo.cs
index dc0c4508b..f74db9058 100644
--- a/MediaBrowser.Model/Connectivity/ClientConnectionInfo.cs
+++ b/MediaBrowser.Model/Session/SessionInfo.cs
@@ -1,14 +1,20 @@
using MediaBrowser.Model.Entities;
using System;
-namespace MediaBrowser.Model.Connectivity
+namespace MediaBrowser.Model.Session
{
/// <summary>
- /// Class ClientConnectionInfo
+ /// Class SessionInfo
/// </summary>
- public class ClientConnectionInfo
+ public class SessionInfo
{
/// <summary>
+ /// Gets or sets the id.
+ /// </summary>
+ /// <value>The id.</value>
+ public Guid Id { get; set; }
+
+ /// <summary>
/// Gets or sets the user id.
/// </summary>
/// <value>The user id.</value>