2023-07-29 04:50:55 -07:00
|
|
|
using System;
|
2023-06-08 01:36:04 -07:00
|
|
|
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>
|
2023-07-29 04:50:55 -07:00
|
|
|
public class AuthenticationResultEventArgs : EventArgs
|
2023-06-08 01:36:04 -07:00
|
|
|
{
|
|
|
|
/// <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; }
|
|
|
|
}
|