2019-01-13 12:25:32 -07:00
|
|
|
|
using System;
|
|
|
|
|
using MediaBrowser.Controller.Entities;
|
2018-12-27 16:27:57 -07:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Net
|
|
|
|
|
{
|
|
|
|
|
public class AuthorizationInfo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the user identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The user identifier.</value>
|
2019-01-13 12:25:32 -07:00
|
|
|
|
public Guid UserId
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
2018-12-27 14:43:48 -07:00
|
|
|
|
return User == null ? Guid.Empty : User.Id;
|
2018-12-27 16:27:57 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
2019-01-07 16:27:46 -07:00
|
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the device identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The device identifier.</value>
|
|
|
|
|
public string DeviceId { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the device.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The device.</value>
|
|
|
|
|
public string Device { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the client.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The client.</value>
|
|
|
|
|
public string Client { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the version.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The version.</value>
|
|
|
|
|
public string Version { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the token.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The token.</value>
|
|
|
|
|
public string Token { get; set; }
|
|
|
|
|
|
|
|
|
|
public User User { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|