mirror of
https://github.com/real-zony/ZonyLrcToolsX.git
synced 2025-09-05 21:16:52 +00:00
refactor: Common components are moved to the Common library.
This commit is contained in:
21
src/ZonyLrcTools.Common/Album/IAlbumDownloader.cs
Normal file
21
src/ZonyLrcTools.Common/Album/IAlbumDownloader.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
namespace ZonyLrcTools.Common.Album
|
||||
{
|
||||
/// <summary>
|
||||
/// 专辑封面下载器,用于匹配并下载歌曲的专辑封面。
|
||||
/// </summary>
|
||||
public interface IAlbumDownloader
|
||||
{
|
||||
/// <summary>
|
||||
/// 下载器的名称。
|
||||
/// </summary>
|
||||
string DownloaderName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 下载专辑封面。
|
||||
/// </summary>
|
||||
/// <param name="songName">歌曲的名称。</param>
|
||||
/// <param name="artist">歌曲的作者。</param>
|
||||
/// <returns>专辑封面的图像数据。</returns>
|
||||
ValueTask<byte[]> DownloadAsync(string songName, string artist);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user