jellyfin-server/MediaBrowser.Model/QuickConnect/QuickConnectResult.cs

46 lines
1.4 KiB
C#
Raw Normal View History

2020-04-15 19:28:42 +00:00
using System;
namespace MediaBrowser.Model.QuickConnect
{
/// <summary>
/// Stores the result of an incoming quick connect request.
/// </summary>
public class QuickConnectResult
{
/// <summary>
/// Gets a value indicating whether this request is authorized.
/// </summary>
public bool Authenticated => !string.IsNullOrEmpty(Authentication);
/// <summary>
/// Gets or sets the secret value used to uniquely identify this request. Can be used to retrieve authentication information.
/// </summary>
2020-06-08 20:48:18 +00:00
public string? Secret { get; set; }
2020-04-15 19:28:42 +00:00
/// <summary>
/// Gets or sets the user facing code used so the user can quickly differentiate this request from others.
/// </summary>
2020-06-08 20:48:18 +00:00
public string? Code { get; set; }
2020-04-15 19:28:42 +00:00
/// <summary>
/// Gets or sets the device friendly name.
/// </summary>
2020-06-08 20:48:18 +00:00
public string? FriendlyName { get; set; }
2020-04-15 19:28:42 +00:00
/// <summary>
/// Gets or sets the private access token.
/// </summary>
2020-06-08 20:48:18 +00:00
public string? Authentication { get; set; }
2020-04-15 19:28:42 +00:00
/// <summary>
/// Gets or sets an error message.
/// </summary>
2020-06-08 20:48:18 +00:00
public string? Error { get; set; }
2020-04-15 19:28:42 +00:00
/// <summary>
/// Gets or sets the DateTime that this request was created.
/// </summary>
2020-06-08 20:48:18 +00:00
public DateTime? DateAdded { get; set; }
2020-04-15 19:28:42 +00:00
}
}