QuickConnectResult.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 public value used to uniquely identify this request. Can only be used to authorize the request.
  19. /// </summary>
  20. public string? Lookup { get; set; }
  21. /// <summary>
  22. /// Gets or sets the user facing code used so the user can quickly differentiate this request from others.
  23. /// </summary>
  24. public string? Code { get; set; }
  25. /// <summary>
  26. /// Gets or sets the device friendly name.
  27. /// </summary>
  28. public string? FriendlyName { get; set; }
  29. /// <summary>
  30. /// Gets or sets the private access token.
  31. /// </summary>
  32. public string? Authentication { get; set; }
  33. /// <summary>
  34. /// Gets or sets an error message.
  35. /// </summary>
  36. public string? Error { get; set; }
  37. /// <summary>
  38. /// Gets or sets the DateTime that this request was created.
  39. /// </summary>
  40. public DateTime? DateAdded { get; set; }
  41. }
  42. }