| | 1 | | namespace MediaBrowser.Model.Lyrics; |
| | 2 | |
|
| | 3 | | /// <summary> |
| | 4 | | /// LyricLineCue model, holds information about the timing of words within a LyricLine. |
| | 5 | | /// </summary> |
| | 6 | | public 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; |
| 186 | 21 | | } |
| | 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 | | } |