diff options
Diffstat (limited to 'MediaBrowser.Controller/Lyrics/Lyric.cs')
| -rw-r--r-- | MediaBrowser.Controller/Lyrics/Lyric.cs | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/MediaBrowser.Controller/Lyrics/Lyric.cs b/MediaBrowser.Controller/Lyrics/Lyric.cs index 35cdabbb9b..f39fbb0221 100644 --- a/MediaBrowser.Controller/Lyrics/Lyric.cs +++ b/MediaBrowser.Controller/Lyrics/Lyric.cs @@ -1,18 +1,28 @@ -namespace MediaBrowser.Controller.Lyrics +namespace MediaBrowser.Controller.Lyrics; + +/// <summary> +/// Lyric model. +/// </summary> +public class Lyric { /// <summary> - /// Lyric model. + /// Initializes a new instance of the <see cref="Lyric"/> class. /// </summary> - public class Lyric + /// <param name="start">The lyric start time in ticks.</param> + /// <param name="text">The lyric text.</param> + public Lyric(string text, long? start = null) { - /// <summary> - /// Gets or sets the start time in ticks. - /// </summary> - public long? Start { get; set; } - - /// <summary> - /// Gets or sets the text. - /// </summary> - public string Text { get; set; } = string.Empty; + Start = start; + Text = text; } + + /// <summary> + /// Gets the start time in ticks. + /// </summary> + public long? Start { get; } + + /// <summary> + /// Gets the text. + /// </summary> + public string Text { get; } } |
