2
0

QuickConnectResult.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. namespace MediaBrowser.Model.QuickConnect
  3. {
  4. /// <summary>
  5. /// Stores the result of an incoming quick connect request.
  6. /// </summary>
  7. public class QuickConnectResult
  8. {
  9. /// <summary>
  10. /// Gets a value indicating whether this request is authorized.
  11. /// </summary>
  12. public bool Authenticated => !string.IsNullOrEmpty(Authentication);
  13. /// <summary>
  14. /// Gets or sets the secret value used to uniquely identify this request. Can be used to retrieve authentication information.
  15. /// </summary>
  16. public string? Secret { get; set; }
  17. /// <summary>
  18. /// Gets or sets the user facing code used so the user can quickly differentiate this request from others.
  19. /// </summary>
  20. public string? Code { get; set; }
  21. /// <summary>
  22. /// Gets or sets the private access token.
  23. /// </summary>
  24. public string? Authentication { get; set; }
  25. /// <summary>
  26. /// Gets or sets an error message.
  27. /// </summary>
  28. public string? Error { get; set; }
  29. /// <summary>
  30. /// Gets or sets the DateTime that this request was created.
  31. /// </summary>
  32. public DateTime? DateAdded { get; set; }
  33. }
  34. }