< Summary - Jellyfin

Information
Class: MediaBrowser.Controller.Events.Authentication.AuthenticationRequestEventArgs
Assembly: MediaBrowser.Controller
File(s): /srv/git/jellyfin/MediaBrowser.Controller/Events/Authentication/AuthenticationRequestEventArgs.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 9
Coverable lines: 9
Total lines: 60
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%

File(s)

/srv/git/jellyfin/MediaBrowser.Controller/Events/Authentication/AuthenticationRequestEventArgs.cs

#LineLine coverage
 1using System;
 2using MediaBrowser.Controller.Session;
 3
 4namespace MediaBrowser.Controller.Events.Authentication;
 5
 6/// <summary>
 7/// A class representing an authentication result event.
 8/// </summary>
 9public class AuthenticationRequestEventArgs : EventArgs
 10{
 11    /// <summary>
 12    /// Initializes a new instance of the <see cref="AuthenticationRequestEventArgs"/> class.
 13    /// </summary>
 14    /// <param name="request">The <see cref="AuthenticationRequest"/>.</param>
 015    public AuthenticationRequestEventArgs(AuthenticationRequest request)
 16    {
 017        Username = request.Username;
 018        UserId = request.UserId;
 019        App = request.App;
 020        AppVersion = request.AppVersion;
 021        DeviceId = request.DeviceId;
 022        DeviceName = request.DeviceName;
 023        RemoteEndPoint = request.RemoteEndPoint;
 024    }
 25
 26    /// <summary>
 27    /// Gets or sets the user name.
 28    /// </summary>
 29    public string? Username { get; set; }
 30
 31    /// <summary>
 32    /// Gets or sets the user id.
 33    /// </summary>
 34    public Guid? UserId { get; set; }
 35
 36    /// <summary>
 37    /// Gets or sets the app.
 38    /// </summary>
 39    public string? App { get; set; }
 40
 41    /// <summary>
 42    /// Gets or sets the app version.
 43    /// </summary>
 44    public string? AppVersion { get; set; }
 45
 46    /// <summary>
 47    /// Gets or sets the device id.
 48    /// </summary>
 49    public string? DeviceId { get; set; }
 50
 51    /// <summary>
 52    /// Gets or sets the device name.
 53    /// </summary>
 54    public string? DeviceName { get; set; }
 55
 56    /// <summary>
 57    /// Gets or sets the remote endpoint.
 58    /// </summary>
 59    public string? RemoteEndPoint { get; set; }
 60}