< Summary - Jellyfin

Information
Class: MediaBrowser.Model.Lyrics.LyricLineCue
Assembly: MediaBrowser.Model
File(s): /srv/git/jellyfin/MediaBrowser.Model/Lyrics/LyricLineCue.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 42
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.Model/Lyrics/LyricLineCue.cs

#LineLine coverage
 1namespace MediaBrowser.Model.Lyrics;
 2
 3/// <summary>
 4/// LyricLineCue model, holds information about the timing of words within a LyricLine.
 5/// </summary>
 6public class LyricLineCue
 7{
 8    /// <summary>
 9    /// Initializes a new instance of the <see cref="LyricLineCue"/> class.
 10    /// </summary>
 11    /// <param name="position">The start character index of the cue.</param>
 12    /// <param name="endPosition">The end character index of the cue.</param>
 13    /// <param name="start">The start of the timestamp the lyric is synced to in ticks.</param>
 14    /// <param name="end">The end of the timestamp the lyric is synced to in ticks.</param>
 15    public LyricLineCue(int position, int endPosition, long start, long? end)
 16    {
 17        Position = position;
 18        EndPosition = endPosition;
 19        Start = start;
 20        End = end;
 18621    }
 22
 23    /// <summary>
 24    /// Gets the start character index of the cue.
 25    /// </summary>
 26    public int Position { get; }
 27
 28    /// <summary>
 29    /// Gets the end character index of the cue.
 30    /// </summary>
 31    public int EndPosition { get; }
 32
 33    /// <summary>
 34    /// Gets the timestamp the lyric is synced to in ticks.
 35    /// </summary>
 36    public long Start { get; }
 37
 38    /// <summary>
 39    /// Gets the end timestamp the lyric is synced to in ticks.
 40    /// </summary>
 41    public long? End { get; }
 42}