< Summary - Jellyfin

Information
Class: MediaBrowser.Controller.SyncPlay.PlaybackRequests.IgnoreWaitGroupRequest
Assembly: MediaBrowser.Controller
File(s): /srv/git/jellyfin/MediaBrowser.Controller/SyncPlay/PlaybackRequests/IgnoreWaitGroupRequest.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 38
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%
Apply(...)100%210%

File(s)

/srv/git/jellyfin/MediaBrowser.Controller/SyncPlay/PlaybackRequests/IgnoreWaitGroupRequest.cs

#LineLine coverage
 1#nullable disable
 2
 3using System.Threading;
 4using MediaBrowser.Controller.Session;
 5using MediaBrowser.Model.SyncPlay;
 6
 7namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
 8{
 9    /// <summary>
 10    /// Class IgnoreWaitGroupRequest.
 11    /// </summary>
 12    public class IgnoreWaitGroupRequest : AbstractPlaybackRequest
 13    {
 14        /// <summary>
 15        /// Initializes a new instance of the <see cref="IgnoreWaitGroupRequest"/> class.
 16        /// </summary>
 17        /// <param name="ignoreWait">Whether the client should be ignored.</param>
 018        public IgnoreWaitGroupRequest(bool ignoreWait)
 19        {
 20            IgnoreWait = ignoreWait;
 021        }
 22
 23        /// <summary>
 24        /// Gets a value indicating whether the client should be ignored.
 25        /// </summary>
 26        /// <value>The client group-wait status.</value>
 27        public bool IgnoreWait { get; }
 28
 29        /// <inheritdoc />
 30        public override PlaybackRequestType Action { get; } = PlaybackRequestType.IgnoreWait;
 31
 32        /// <inheritdoc />
 33        public override void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken
 34        {
 035            state.HandleRequest(this, context, state.Type, session, cancellationToken);
 036        }
 37    }
 38}