jellyfin/MediaBrowser.Controller/Lyrics/LyricLine.cs

29 lines
655 B
C#
Raw Normal View History

2022-09-17 17:37:38 -04:00
namespace MediaBrowser.Controller.Lyrics;
/// <summary>
/// Lyric model.
/// </summary>
2022-09-18 16:05:50 -04:00
public class LyricLine
2022-09-10 14:58:03 -04:00
{
/// <summary>
2022-09-18 16:05:50 -04:00
/// Initializes a new instance of the <see cref="LyricLine"/> class.
2022-09-10 14:58:03 -04:00
/// </summary>
2022-09-17 17:37:38 -04:00
/// <param name="text">The lyric text.</param>
2022-09-18 21:17:53 -04:00
/// <param name="start">The lyric start time in ticks.</param>
2022-09-18 16:05:50 -04:00
public LyricLine(string text, long? start = null)
2022-09-10 14:58:03 -04:00
{
2022-09-17 17:37:38 -04:00
Start = start;
Text = text;
2022-09-10 14:58:03 -04:00
}
2022-09-17 17:37:38 -04:00
/// <summary>
/// Gets the start time in ticks.
/// </summary>
public long? Start { get; }
/// <summary>
/// Gets the text.
/// </summary>
public string Text { get; }
2022-09-10 14:58:03 -04:00
}