aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Lyrics/LyricLineCue.cs
blob: 2915533617df8069bd9087efc742703ed44f6423 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
namespace MediaBrowser.Model.Lyrics;

/// <summary>
/// LyricLineCue model, holds information about the timing of words within a LyricLine.
/// </summary>
public class LyricLineCue
{
    /// <summary>
    /// Initializes a new instance of the <see cref="LyricLineCue"/> class.
    /// </summary>
    /// <param name="position">The start character index of the cue.</param>
    /// <param name="endPosition">The end character index of the cue.</param>
    /// <param name="start">The start of the timestamp the lyric is synced to in ticks.</param>
    /// <param name="end">The end of the timestamp the lyric is synced to in ticks.</param>
    public LyricLineCue(int position, int endPosition, long start, long? end)
    {
        Position = position;
        EndPosition = endPosition;
        Start = start;
        End = end;
    }

    /// <summary>
    /// Gets the start character index of the cue.
    /// </summary>
    public int Position { get; }

    /// <summary>
    /// Gets the end character index of the cue.
    /// </summary>
    public int EndPosition { get; }

    /// <summary>
    /// Gets the timestamp the lyric is synced to in ticks.
    /// </summary>
    public long Start { get; }

    /// <summary>
    /// Gets the end timestamp the lyric is synced to in ticks.
    /// </summary>
    public long? End { get; }
}