mirror of
https://github.com/real-zony/ZonyLrcToolsX.git
synced 2025-09-06 05:36:53 +00:00
chore: Move the related configuration items to the Common library.
This commit is contained in:
20
src/ZonyLrcTools.Common/Configuration/GlobalOptions.cs
Normal file
20
src/ZonyLrcTools.Common/Configuration/GlobalOptions.cs
Normal 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; }
|
||||
}
|
||||
}
|
23
src/ZonyLrcTools.Common/Configuration/NetworkOptions.cs
Normal file
23
src/ZonyLrcTools.Common/Configuration/NetworkOptions.cs
Normal 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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user