LyricLineCue.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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 of the character index of the lyric.</param>
  11. /// <param name="start">The start of the timestamp the lyric is synced to in ticks.</param>
  12. /// <param name="end">The end of the timestamp the lyric is synced to in ticks.</param>
  13. public LyricLineCue(int position, long start, long? end)
  14. {
  15. Position = position;
  16. Start = start;
  17. End = end;
  18. }
  19. /// <summary>
  20. /// Gets the character index of the lyric.
  21. /// </summary>
  22. public int Position { get; }
  23. /// <summary>
  24. /// Gets the timestamp the lyric is synced to in ticks.
  25. /// </summary>
  26. public long Start { get; }
  27. /// <summary>
  28. /// Gets the end timestamp the lyric is synced to in ticks.
  29. /// </summary>
  30. public long? End { get; }
  31. }