| | 1 | | using System; |
| | 2 | | using MediaBrowser.Controller.Authentication; |
| | 3 | | using MediaBrowser.Controller.Session; |
| | 4 | | using MediaBrowser.Model.Dto; |
| | 5 | |
|
| | 6 | | namespace MediaBrowser.Controller.Events.Authentication; |
| | 7 | |
|
| | 8 | | /// <summary> |
| | 9 | | /// A class representing an authentication result event. |
| | 10 | | /// </summary> |
| | 11 | | public class AuthenticationResultEventArgs : EventArgs |
| | 12 | | { |
| | 13 | | /// <summary> |
| | 14 | | /// Initializes a new instance of the <see cref="AuthenticationResultEventArgs"/> class. |
| | 15 | | /// </summary> |
| | 16 | | /// <param name="result">The <see cref="AuthenticationResult"/>.</param> |
| 16 | 17 | | public AuthenticationResultEventArgs(AuthenticationResult result) |
| | 18 | | { |
| 16 | 19 | | User = result.User; |
| 16 | 20 | | SessionInfo = result.SessionInfo; |
| 16 | 21 | | ServerId = result.ServerId; |
| 16 | 22 | | } |
| | 23 | |
|
| | 24 | | /// <summary> |
| | 25 | | /// Gets or sets the user. |
| | 26 | | /// </summary> |
| | 27 | | public UserDto User { get; set; } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Gets or sets the session information. |
| | 31 | | /// </summary> |
| | 32 | | public SessionInfo? SessionInfo { get; set; } |
| | 33 | |
|
| | 34 | | /// <summary> |
| | 35 | | /// Gets or sets the server id. |
| | 36 | | /// </summary> |
| | 37 | | public string? ServerId { get; set; } |
| | 38 | | } |