aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Connectivity/ClientConnectionInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/Connectivity/ClientConnectionInfo.cs')
-rw-r--r--MediaBrowser.Model/Connectivity/ClientConnectionInfo.cs55
1 files changed, 55 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Connectivity/ClientConnectionInfo.cs b/MediaBrowser.Model/Connectivity/ClientConnectionInfo.cs
new file mode 100644
index 000000000..b61ea99fa
--- /dev/null
+++ b/MediaBrowser.Model/Connectivity/ClientConnectionInfo.cs
@@ -0,0 +1,55 @@
+using MediaBrowser.Model.Entities;
+using ProtoBuf;
+using System;
+
+namespace MediaBrowser.Model.Connectivity
+{
+ /// <summary>
+ /// Class ClientConnectionInfo
+ /// </summary>
+ [ProtoContract]
+ public class ClientConnectionInfo
+ {
+ /// <summary>
+ /// Gets or sets the user id.
+ /// </summary>
+ /// <value>The user id.</value>
+ [ProtoMember(1)]
+ public Guid UserId { get; set; }
+
+ /// <summary>
+ /// Gets or sets the type of the client.
+ /// </summary>
+ /// <value>The type of the client.</value>
+ [ProtoMember(2)]
+ public ClientType ClientType { get; set; }
+
+ /// <summary>
+ /// Gets or sets the last activity date.
+ /// </summary>
+ /// <value>The last activity date.</value>
+ [ProtoMember(3)]
+ public DateTime LastActivityDate { get; set; }
+
+ /// <summary>
+ /// Gets or sets the name of the device.
+ /// </summary>
+ /// <value>The name of the device.</value>
+ [ProtoMember(4)]
+ public string DeviceName { get; set; }
+
+ /// <summary>
+ /// Gets or sets the now playing item.
+ /// </summary>
+ /// <value>The now playing item.</value>
+ [ProtoMember(5)]
+ public BaseItemInfo NowPlayingItem { get; set; }
+
+ /// <summary>
+ /// Gets or sets the now playing position ticks.
+ /// </summary>
+ /// <value>The now playing position ticks.</value>
+ [ProtoMember(6)]
+ public long? NowPlayingPositionTicks { get; set; }
+ }
+}