LyricLineCue.cs 1.3 KB

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