af1152b001
Refactored all C# test files to use explicit namespace declarations and moved all using directives inside the namespace block for consistency. Updated assembly info and cache files to reflect the new build. Adjusted MvcTestingAppManifest.json to use fully qualified assembly names. No functional changes; all updates are related to code style, organization, and project metadata.
65 lines
1.8 KiB
C#
65 lines
1.8 KiB
C#
// <copyright file="AuthenticationRequestEventArgs.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace MediaBrowser.Controller.Events.Authentication;
|
|
|
|
using System;
|
|
using MediaBrowser.Controller.Session;
|
|
|
|
/// <summary>
|
|
/// A class representing an authentication result event.
|
|
/// </summary>
|
|
public class AuthenticationRequestEventArgs : EventArgs
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="AuthenticationRequestEventArgs"/> class.
|
|
/// </summary>
|
|
/// <param name="request">The <see cref="AuthenticationRequest"/>.</param>
|
|
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;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the user name.
|
|
/// </summary>
|
|
public string? Username { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the user id.
|
|
/// </summary>
|
|
public Guid? UserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the app.
|
|
/// </summary>
|
|
public string? App { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the app version.
|
|
/// </summary>
|
|
public string? AppVersion { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the device id.
|
|
/// </summary>
|
|
public string? DeviceId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the device name.
|
|
/// </summary>
|
|
public string? DeviceName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the remote endpoint.
|
|
/// </summary>
|
|
public string? RemoteEndPoint { get; set; }
|
|
}
|