Files
downkyicore/DownKyi.Core/Settings/Models/NetworkSettings.cs
yaobiao131 f744d264e0 fix: 优化项目代码
1、修复部分字幕下载问题
2、修复自定义aria2设置出错问题
2025-03-19 21:54:14 +08:00

45 lines
1.4 KiB
C#

using DownKyi.Core.Aria2cNet.Server;
namespace DownKyi.Core.Settings.Models;
/// <summary>
/// 网络
/// </summary>
public class NetworkSettings
{
public AllowStatus IsLiftingOfRegion { get; set; } = AllowStatus.None;
public AllowStatus UseSsl { get; set; } = AllowStatus.None;
public string UserAgent { get; set; } = string.Empty;
public Downloader Downloader { get; set; } = Downloader.NotSet;
public int MaxCurrentDownloads { get; set; } = -1;
#region built-in
public int Split { get; set; } = -1;
public AllowStatus IsHttpProxy { get; set; } = AllowStatus.None;
public string? HttpProxy { get; set; }
public int HttpProxyListenPort { get; set; } = -1;
#endregion
#region Aria
public string? AriaToken { get; set; }
public string? AriaHost { get; set; }
public int AriaListenPort { get; set; } = -1;
public AriaConfigLogLevel AriaLogLevel { get; set; } = AriaConfigLogLevel.NOT_SET;
public int AriaSplit { get; set; } = -1;
public int AriaMaxOverallDownloadLimit { get; set; } = -1;
public int AriaMaxDownloadLimit { get; set; } = -1;
public AriaConfigFileAllocation AriaFileAllocation { get; set; } = AriaConfigFileAllocation.NOT_SET;
public AllowStatus IsAriaHttpProxy { get; set; } = AllowStatus.None;
public string? AriaHttpProxy { get; set; }
public int AriaHttpProxyListenPort { get; set; } = -1;
#endregion
}