jellyfin/MediaBrowser.Model/Lyrics/LyricLine.cs

29 lines
669 B
C#
Raw Normal View History

namespace MediaBrowser.Model.Lyrics;
2022-09-17 17:37:38 -04:00
/// <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
Text = text;
2022-09-21 17:49:28 -04:00
Start = start;
2022-09-10 14:58:03 -04:00
}
2022-09-17 17:37:38 -04:00
/// <summary>
2022-09-21 17:49:28 -04:00
/// Gets the text of this lyric line.
2022-09-17 17:37:38 -04:00
/// </summary>
2022-09-21 17:49:28 -04:00
public string Text { get; }
2022-09-17 17:37:38 -04:00
/// <summary>
2022-09-21 17:49:28 -04:00
/// Gets the start time in ticks.
2022-09-17 17:37:38 -04:00
/// </summary>
2022-09-21 17:49:28 -04:00
public long? Start { get; }
2022-09-10 14:58:03 -04:00
}