From a86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Thu, 27 Dec 2018 18:27:57 -0500 Subject: Add GPL modules --- MediaBrowser.Controller/Net/AuthorizationInfo.cs | 52 ++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 MediaBrowser.Controller/Net/AuthorizationInfo.cs (limited to 'MediaBrowser.Controller/Net/AuthorizationInfo.cs') diff --git a/MediaBrowser.Controller/Net/AuthorizationInfo.cs b/MediaBrowser.Controller/Net/AuthorizationInfo.cs new file mode 100644 index 0000000000..a68060db5b --- /dev/null +++ b/MediaBrowser.Controller/Net/AuthorizationInfo.cs @@ -0,0 +1,52 @@ +using MediaBrowser.Controller.Entities; +using System; + + +namespace MediaBrowser.Controller.Net +{ + public class AuthorizationInfo + { + /// + /// Gets or sets the user identifier. + /// + /// The user identifier. + public Guid UserId { + get { + if (User == null) { + return Guid.Empty; + } + else { + return User.Id; + } + } + } + + /// + /// Gets or sets the device identifier. + /// + /// The device identifier. + public string DeviceId { get; set; } + /// + /// Gets or sets the device. + /// + /// The device. + public string Device { get; set; } + /// + /// Gets or sets the client. + /// + /// The client. + public string Client { get; set; } + /// + /// Gets or sets the version. + /// + /// The version. + public string Version { get; set; } + /// + /// Gets or sets the token. + /// + /// The token. + public string Token { get; set; } + + public User User { get; set; } + } +} -- cgit v1.2.3