jellyfin/MediaBrowser.Controller/Lyrics/ILyricProvider.cs

29 lines
771 B
C#
Raw Normal View History

using System.Collections.Generic;
using MediaBrowser.Controller.Entities;
2022-09-17 21:37:38 +00:00
namespace MediaBrowser.Controller.Lyrics;
/// <summary>
/// Interface ILyricsProvider.
/// </summary>
public interface ILyricProvider
{
/// <summary>
2022-09-17 21:37:38 +00:00
/// Gets a value indicating the provider name.
/// </summary>
2022-09-17 21:37:38 +00:00
string Name { get; }
2022-09-16 00:49:25 +00:00
2022-09-17 21:37:38 +00:00
/// <summary>
/// Gets the supported media types for this provider.
/// </summary>
/// <value>The supported media types.</value>
IEnumerable<string> SupportedMediaTypes { get; }
2022-09-17 21:37:38 +00:00
/// <summary>
/// Gets the lyrics.
/// </summary>
/// <param name="item">The media item.</param>
/// <returns>If found, returns lyrics for passed item; otherwise, null.</returns>
LyricResponse? GetLyrics(BaseItem item);
}