diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2023-06-08 10:36:04 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2023-07-07 08:50:37 +0200 |
| commit | 958f8f71e8174aa3884cbafa54d07bf247517014 (patch) | |
| tree | 16cf0957d2208f83dace85cfaf1b7b2de35b37cb /MediaBrowser.Controller/Events/Authentication/AuthenticationResultEventArgs.cs | |
| parent | 5b711f38d143fc3eca231c745a52fedbe7a10092 (diff) | |
Add wrapper object for authentication event information
Diffstat (limited to 'MediaBrowser.Controller/Events/Authentication/AuthenticationResultEventArgs.cs')
| -rw-r--r-- | MediaBrowser.Controller/Events/Authentication/AuthenticationResultEventArgs.cs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Events/Authentication/AuthenticationResultEventArgs.cs b/MediaBrowser.Controller/Events/Authentication/AuthenticationResultEventArgs.cs new file mode 100644 index 000000000..5564fa1ce --- /dev/null +++ b/MediaBrowser.Controller/Events/Authentication/AuthenticationResultEventArgs.cs @@ -0,0 +1,37 @@ +using MediaBrowser.Controller.Authentication; +using MediaBrowser.Controller.Session; +using MediaBrowser.Model.Dto; + +namespace MediaBrowser.Controller.Events.Authentication; + +/// <summary> +/// A class representing an authentication result event. +/// </summary> +public class AuthenticationResultEventArgs +{ + /// <summary> + /// Initializes a new instance of the <see cref="AuthenticationResultEventArgs"/> class. + /// </summary> + /// <param name="result">The <see cref="AuthenticationResult"/>.</param> + public AuthenticationResultEventArgs(AuthenticationResult result) + { + User = result.User; + SessionInfo = result.SessionInfo; + ServerId = result.ServerId; + } + + /// <summary> + /// Gets or sets the user. + /// </summary> + public UserDto User { get; set; } + + /// <summary> + /// Gets or sets the session information. + /// </summary> + public SessionInfo? SessionInfo { get; set; } + + /// <summary> + /// Gets or sets the server id. + /// </summary> + public string? ServerId { get; set; } +} |
