< Summary - Jellyfin

Information
Class: MediaBrowser.Controller.Events.Authentication.AuthenticationResultEventArgs
Assembly: MediaBrowser.Controller
File(s): /srv/git/jellyfin/MediaBrowser.Controller/Events/Authentication/AuthenticationResultEventArgs.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 38
Line coverage: 100%
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%11100%

File(s)

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

#LineLine coverage
 1using System;
 2using MediaBrowser.Controller.Authentication;
 3using MediaBrowser.Controller.Session;
 4using MediaBrowser.Model.Dto;
 5
 6namespace MediaBrowser.Controller.Events.Authentication;
 7
 8/// <summary>
 9/// A class representing an authentication result event.
 10/// </summary>
 11public class AuthenticationResultEventArgs : EventArgs
 12{
 13    /// <summary>
 14    /// Initializes a new instance of the <see cref="AuthenticationResultEventArgs"/> class.
 15    /// </summary>
 16    /// <param name="result">The <see cref="AuthenticationResult"/>.</param>
 1617    public AuthenticationResultEventArgs(AuthenticationResult result)
 18    {
 1619        User = result.User;
 1620        SessionInfo = result.SessionInfo;
 1621        ServerId = result.ServerId;
 1622    }
 23
 24    /// <summary>
 25    /// Gets or sets the user.
 26    /// </summary>
 27    public UserDto User { get; set; }
 28
 29    /// <summary>
 30    /// Gets or sets the session information.
 31    /// </summary>
 32    public SessionInfo? SessionInfo { get; set; }
 33
 34    /// <summary>
 35    /// Gets or sets the server id.
 36    /// </summary>
 37    public string? ServerId { get; set; }
 38}