using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProxySuper.Core.Models.Projects { public partial class XraySettings : IProjectSettings { public override List FreePorts { get { return new List { VLESS_KCP_Port, VMESS_KCP_Port, ShadowSocksPort, }; } } public override ProjectType Type { get; set; } = ProjectType.Xray; /// /// 端口 /// public override int Port { get; set; } /// /// 域名 /// public override string Domain { get; set; } /// /// UUID /// public string UUID { get; set; } /// /// 伪装域名 /// public string MaskDomain { get; set; } /// /// 安装类型 /// public List Types { get; set; } = new List(); /// /// 根据xray类型获取路径 /// /// /// public string GetPath(XrayType type) { switch (type) { case XrayType.VLESS_WS: return VLESS_WS_Path; case XrayType.VMESS_TCP: return VMESS_TCP_Path; case XrayType.VMESS_WS: return VMESS_WS_Path; default: return string.Empty; } } } }