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