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

This commit is contained in:
real-zony
2022-10-06 12:29:56 +08:00
parent 9f96aa0186
commit aa90e232f7
15 changed files with 35 additions and 40 deletions

View File

@@ -0,0 +1,20 @@
namespace ZonyLrcTools.Common.Configuration
{
public class GlobalOptions
{
/// <summary>
/// 支持的音乐文件后缀集合。
/// </summary>
public List<string> SupportFileExtensions { get; set; }
/// <summary>
/// 网络代理相关的配置信息。
/// </summary>
public NetworkOptions NetworkOptions { get; set; }
/// <summary>
/// 定义下载器的相关配置信息。
/// </summary>
public ProviderOptions Provider { get; set; }
}
}

View File

@@ -0,0 +1,23 @@
namespace ZonyLrcTools.Common.Configuration
{
/// <summary>
/// 工具网络相关的设定。
/// </summary>
public class NetworkOptions
{
/// <summary>
/// 是否启用了网络代理功能。
/// </summary>
public bool IsEnable { get; set; }
/// <summary>
/// 代理服务器的 Ip。
/// </summary>
public string Ip { get; set; }
/// <summary>
/// 代理服务器的 端口。
/// </summary>
public int Port { get; set; }
}
}