LyricLine.cs 997 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System.Collections.Generic;
  2. namespace MediaBrowser.Model.Lyrics;
  3. /// <summary>
  4. /// Lyric model.
  5. /// </summary>
  6. public class LyricLine
  7. {
  8. /// <summary>
  9. /// Initializes a new instance of the <see cref="LyricLine"/> class.
  10. /// </summary>
  11. /// <param name="text">The lyric text.</param>
  12. /// <param name="start">The lyric start time in ticks.</param>
  13. /// <param name="cues">The time-aligned cues for the song's lyrics.</param>
  14. public LyricLine(string text, long? start = null, IReadOnlyList<LyricLineCue>? cues = null)
  15. {
  16. Text = text;
  17. Start = start;
  18. Cues = cues;
  19. }
  20. /// <summary>
  21. /// Gets the text of this lyric line.
  22. /// </summary>
  23. public string Text { get; }
  24. /// <summary>
  25. /// Gets the start time in ticks.
  26. /// </summary>
  27. public long? Start { get; }
  28. /// <summary>
  29. /// Gets the time-aligned cues for the song's lyrics.
  30. /// </summary>
  31. public IReadOnlyList<LyricLineCue>? Cues { get; }
  32. }