jellyfin/MediaBrowser.Controller/Lyrics/ILyricProvider.cs

37 lines
972 B
C#
Raw Normal View History

using System.Collections.Generic;
2022-09-22 14:13:53 +02:00
using System.Threading.Tasks;
using MediaBrowser.Controller.Entities;
2022-09-18 19:13:01 +02:00
using MediaBrowser.Controller.Resolvers;
2022-09-17 23:37:38 +02:00
namespace MediaBrowser.Controller.Lyrics;
/// <summary>
/// Interface ILyricsProvider.
/// </summary>
public interface ILyricProvider
{
/// <summary>
2022-09-17 23:37:38 +02:00
/// Gets a value indicating the provider name.
/// </summary>
2022-09-17 23:37:38 +02:00
string Name { get; }
2022-09-16 02:49:25 +02:00
2022-09-18 19:13:01 +02:00
/// <summary>
/// Gets the priority.
/// </summary>
/// <value>The priority.</value>
ResolverPriority Priority { get; }
2022-09-17 23:37:38 +02:00
/// <summary>
/// Gets the supported media types for this provider.
/// </summary>
/// <value>The supported media types.</value>
2022-09-18 22:05:50 +02:00
IReadOnlyCollection<string> SupportedMediaTypes { get; }
2022-09-17 23:37:38 +02:00
/// <summary>
/// Gets the lyrics.
/// </summary>
/// <param name="item">The media item.</param>
2022-09-22 14:13:53 +02:00
/// <returns>A task representing found lyrics.</returns>
Task<LyricResponse?> GetLyrics(BaseItem item);
}