jellyfin-server/MediaBrowser.Controller/Lyrics/LyricLine.cs

29 lines
674 B
C#
Raw Normal View History

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