jellyfin/MediaBrowser.Controller/Lyrics/LyricLine.cs

29 lines
674 B
C#
Raw Normal View History

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