using SteamTool.Model; using System; using System.Collections.Generic; using System.ComponentModel; using System.Net; using System.Text; namespace SteamTool.Proxy { public class ProxyDomainModel { /// /// 显示在UI上的名称 /// public string Name { get; set; } /// /// 代理域名合集 /// public IReadOnlyCollection Domains { get; set; } /// /// 端口 /// public int Port { get; set; } = 443; /// /// 转发域名 /// public string ToDomain { get; set; } /// /// 转发域名IP /// public string ProxyIPAddres { get; set; } /// /// 伪装的ServerName /// public string ServerName { get; set; } /// /// 启用该域名代理 /// public bool IsEnable { get; set; } /// /// 启用重定向 /// public bool IsRedirect { get; set; } public IReadOnlyCollection Hosts { get; set; } public DomainTag DomainTag { get; set; } } [TypeConverter(typeof(EnumDescriptionTypeConverter))] public enum DomainTag : byte { [Description("steam社区")] SteamCommunity = 0, [Description("steam商店")] SteamStore = 1, [Description("steam部分图片修复")] SteamImage = 2, [Description("steam好友服务")] SteamChat = 3, [Description("Discord语音")] Discord = 4, [Description("Twitch直播")] Twitch = 5, [Description("Origin下载(Akamai)")] OriginGameDownload = 6, [Description("GOG.COM")] GOG = 7, [Description("Google(Recaptcha)")] GoogleCode = 8, [Description("Github图片及资源修复")] GithubContent = 9, [Description("Pixiv")] Pixiv = 10, [Description("Discord更新下载")] DiscordNet = 11, [Description("Uplay更新防劫持")] UplayUpdate = 12, [Description("Twitch聊天")] TwitchChat = 13, [Description("Github Gist")] GithubGist = 14, [Description("Pixiv图片")] PixivImage = 15, [Description("steam图片上传(聊天\\截图)")] SteamImageUpload = 16, [Description("steam更新")] SteamMeidia = 17, } }