using System;
using MediaBrowser.Controller.Session;
namespace MediaBrowser.Controller.Events.Authentication;
///
/// A class representing an authentication result event.
///
public class AuthenticationRequestEventArgs : EventArgs
{
///
/// Initializes a new instance of the class.
///
/// The .
public AuthenticationRequestEventArgs(AuthenticationRequest request)
{
Username = request.Username;
UserId = request.UserId;
App = request.App;
AppVersion = request.AppVersion;
DeviceId = request.DeviceId;
DeviceName = request.DeviceName;
RemoteEndPoint = request.RemoteEndPoint;
}
///
/// Gets or sets the user name.
///
public string? Username { get; set; }
///
/// Gets or sets the user id.
///
public Guid? UserId { get; set; }
///
/// Gets or sets the app.
///
public string? App { get; set; }
///
/// Gets or sets the app version.
///
public string? AppVersion { get; set; }
///
/// Gets or sets the device id.
///
public string? DeviceId { get; set; }
///
/// Gets or sets the device name.
///
public string? DeviceName { get; set; }
///
/// Gets or sets the remote endpoint.
///
public string? RemoteEndPoint { get; set; }
}