refactor: Move the related configuration items to the Common library.

This commit is contained in:
real-zony
2022-10-06 12:27:21 +08:00
parent bccfaaaa5b
commit 9f96aa0186
16 changed files with 89 additions and 71 deletions

View File

@@ -0,0 +1,13 @@
namespace ZonyLrcTools.Common.Configuration;
public class LyricsOptions
{
public IEnumerable<LyricsProviderOptions> Plugin { get; set; }
public GlobalLyricsConfigOptions Config { get; set; }
public LyricsProviderOptions GetLyricProviderOption(string name)
{
return Plugin.FirstOrDefault(x => x.Name == name);
}
}