From e1f8c18b516f5bd31f64b8faaa53266a3daddd7a Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 9 May 2013 13:38:02 -0400 Subject: added ability to track web sockets per session --- MediaBrowser.Model/Session/SessionInfo.cs | 59 +++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 MediaBrowser.Model/Session/SessionInfo.cs (limited to 'MediaBrowser.Model/Session') diff --git a/MediaBrowser.Model/Session/SessionInfo.cs b/MediaBrowser.Model/Session/SessionInfo.cs new file mode 100644 index 000000000..f74db9058 --- /dev/null +++ b/MediaBrowser.Model/Session/SessionInfo.cs @@ -0,0 +1,59 @@ +using MediaBrowser.Model.Entities; +using System; + +namespace MediaBrowser.Model.Session +{ + /// + /// Class SessionInfo + /// + public class SessionInfo + { + /// + /// Gets or sets the id. + /// + /// The id. + public Guid Id { get; set; } + + /// + /// Gets or sets the user id. + /// + /// The user id. + public string UserId { get; set; } + + /// + /// Gets or sets the type of the client. + /// + /// The type of the client. + public string Client { get; set; } + + /// + /// Gets or sets the last activity date. + /// + /// The last activity date. + public DateTime LastActivityDate { get; set; } + + /// + /// Gets or sets the name of the device. + /// + /// The name of the device. + public string DeviceName { get; set; } + + /// + /// Gets or sets the now playing item. + /// + /// The now playing item. + public BaseItemInfo NowPlayingItem { get; set; } + + /// + /// Gets or sets the now playing position ticks. + /// + /// The now playing position ticks. + public long? NowPlayingPositionTicks { get; set; } + + /// + /// Gets or sets the device id. + /// + /// The device id. + public string DeviceId { get; set; } + } +} -- cgit v1.2.3