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; } } }