AuthenticationRequestEventArgs.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System;
  2. using MediaBrowser.Controller.Session;
  3. namespace MediaBrowser.Controller.Events.Authentication;
  4. /// <summary>
  5. /// A class representing an authentication result event.
  6. /// </summary>
  7. public class AuthenticationRequestEventArgs : EventArgs
  8. {
  9. /// <summary>
  10. /// Initializes a new instance of the <see cref="AuthenticationRequestEventArgs"/> class.
  11. /// </summary>
  12. /// <param name="request">The <see cref="AuthenticationRequest"/>.</param>
  13. public AuthenticationRequestEventArgs(AuthenticationRequest request)
  14. {
  15. Username = request.Username;
  16. UserId = request.UserId;
  17. App = request.App;
  18. AppVersion = request.AppVersion;
  19. DeviceId = request.DeviceId;
  20. DeviceName = request.DeviceName;
  21. RemoteEndPoint = request.RemoteEndPoint;
  22. }
  23. /// <summary>
  24. /// Gets or sets the user name.
  25. /// </summary>
  26. public string? Username { get; set; }
  27. /// <summary>
  28. /// Gets or sets the user id.
  29. /// </summary>
  30. public Guid? UserId { get; set; }
  31. /// <summary>
  32. /// Gets or sets the app.
  33. /// </summary>
  34. public string? App { get; set; }
  35. /// <summary>
  36. /// Gets or sets the app version.
  37. /// </summary>
  38. public string? AppVersion { get; set; }
  39. /// <summary>
  40. /// Gets or sets the device id.
  41. /// </summary>
  42. public string? DeviceId { get; set; }
  43. /// <summary>
  44. /// Gets or sets the device name.
  45. /// </summary>
  46. public string? DeviceName { get; set; }
  47. /// <summary>
  48. /// Gets or sets the remote endpoint.
  49. /// </summary>
  50. public string? RemoteEndPoint { get; set; }
  51. }