using System; using MediaBrowser.Controller.Entities; namespace MediaBrowser.Controller.Net { public class AuthorizationInfo { /// /// Gets or sets the user identifier. /// /// The user identifier. public Guid UserId => User == null ? Guid.Empty : 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; } } }