< Summary - Jellyfin

Information
Class: MediaBrowser.Model.SyncPlay.SendCommand
Assembly: MediaBrowser.Model
File(s): /srv/git/jellyfin/MediaBrowser.Model/SyncPlay/SendCommand.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 65
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.Model/SyncPlay/SendCommand.cs

#LineLine coverage
 1using System;
 2
 3namespace MediaBrowser.Model.SyncPlay
 4{
 5    /// <summary>
 6    /// Class SendCommand.
 7    /// </summary>
 8    public class SendCommand
 9    {
 10        /// <summary>
 11        /// Initializes a new instance of the <see cref="SendCommand"/> class.
 12        /// </summary>
 13        /// <param name="groupId">The group identifier.</param>
 14        /// <param name="playlistItemId">The playlist identifier of the playing item.</param>
 15        /// <param name="when">The UTC time when to execute the command.</param>
 16        /// <param name="command">The command.</param>
 17        /// <param name="positionTicks">The position ticks, for commands that require it.</param>
 18        /// <param name="emittedAt">The UTC time when this command has been emitted.</param>
 19        public SendCommand(Guid groupId, Guid playlistItemId, DateTime when, SendCommandType command, long? positionTick
 20        {
 21            GroupId = groupId;
 22            PlaylistItemId = playlistItemId;
 023            When = when;
 24            Command = command;
 25            PositionTicks = positionTicks;
 26            EmittedAt = emittedAt;
 027        }
 28
 29        /// <summary>
 30        /// Gets the group identifier.
 31        /// </summary>
 32        /// <value>The group identifier.</value>
 33        public Guid GroupId { get; }
 34
 35        /// <summary>
 36        /// Gets the playlist identifier of the playing item.
 37        /// </summary>
 38        /// <value>The playlist identifier of the playing item.</value>
 39        public Guid PlaylistItemId { get; }
 40
 41        /// <summary>
 42        /// Gets or sets the UTC time when to execute the command.
 43        /// </summary>
 44        /// <value>The UTC time when to execute the command.</value>
 45        public DateTime When { get; set; }
 46
 47        /// <summary>
 48        /// Gets the position ticks.
 49        /// </summary>
 50        /// <value>The position ticks.</value>
 51        public long? PositionTicks { get; }
 52
 53        /// <summary>
 54        /// Gets the command.
 55        /// </summary>
 56        /// <value>The command.</value>
 57        public SendCommandType Command { get; }
 58
 59        /// <summary>
 60        /// Gets the UTC time when this command has been emitted.
 61        /// </summary>
 62        /// <value>The UTC time when this command has been emitted.</value>
 63        public DateTime EmittedAt { get; }
 64    }
 65}