jellyfin/MediaBrowser.Controller/Net/AuthorizationInfo.cs

49 lines
1.2 KiB
C#
Raw Normal View History

#pragma warning disable CS1591
using System;
2020-05-13 04:10:35 +02:00
using Jellyfin.Data.Entities;
2018-12-28 00:27:57 +01:00
namespace MediaBrowser.Controller.Net
{
public class AuthorizationInfo
{
/// <summary>
2020-05-13 04:10:35 +02:00
/// Gets the user identifier.
2018-12-28 00:27:57 +01:00
/// </summary>
/// <value>The user identifier.</value>
2020-05-13 04:10:35 +02:00
public Guid UserId => User?.Id ?? Guid.Empty;
2019-01-08 00:27:46 +01:00
2018-12-28 00:27:57 +01:00
/// <summary>
/// Gets or sets the device identifier.
/// </summary>
/// <value>The device identifier.</value>
public string DeviceId { get; set; }
2020-05-13 04:10:35 +02:00
2018-12-28 00:27:57 +01:00
/// <summary>
/// Gets or sets the device.
/// </summary>
/// <value>The device.</value>
public string Device { get; set; }
2020-05-13 04:10:35 +02:00
2018-12-28 00:27:57 +01:00
/// <summary>
/// Gets or sets the client.
/// </summary>
/// <value>The client.</value>
public string Client { get; set; }
2020-05-13 04:10:35 +02:00
2018-12-28 00:27:57 +01:00
/// <summary>
/// Gets or sets the version.
/// </summary>
/// <value>The version.</value>
public string Version { get; set; }
2020-05-13 04:10:35 +02:00
2018-12-28 00:27:57 +01:00
/// <summary>
/// Gets or sets the token.
/// </summary>
/// <value>The token.</value>
public string Token { get; set; }
public User User { get; set; }
}
}