LyricLine.cs 669 B

12345678910111213141516171819202122232425262728
  1. namespace MediaBrowser.Model.Lyrics;
  2. /// <summary>
  3. /// Lyric model.
  4. /// </summary>
  5. public class LyricLine
  6. {
  7. /// <summary>
  8. /// Initializes a new instance of the <see cref="LyricLine"/> class.
  9. /// </summary>
  10. /// <param name="text">The lyric text.</param>
  11. /// <param name="start">The lyric start time in ticks.</param>
  12. public LyricLine(string text, long? start = null)
  13. {
  14. Text = text;
  15. Start = start;
  16. }
  17. /// <summary>
  18. /// Gets the text of this lyric line.
  19. /// </summary>
  20. public string Text { get; }
  21. /// <summary>
  22. /// Gets the start time in ticks.
  23. /// </summary>
  24. public long? Start { get; }
  25. }