using System; using System.Collections.Generic; using System.Text; namespace ProxySU_Core.ViewModels.Developers { public class XrayParameters : IParameters { /// /// 访问端口 /// public int Port { get; set; } /// /// UUID /// public string UUID { get; set; } /// /// vless ws路径 /// public string VlessWsPath { get; set; } /// /// vless tcp路径 /// public string VlessTcpPath { get; set; } /// /// vmess ws路径 /// public string VmessWsPath { get; set; } /// /// vmess tcp路径 /// public string VmessTcpPath { get; set; } /// /// trojan tcp路径 /// public string TrojanTcpPath { get; set; } /// /// trojan密码 /// public string TrojanPassword { get; set; } /// /// 域名 /// public string Domain { get; set; } /// /// 伪装域名 /// public string MaskDomain { get; set; } /// /// 安装类型 /// public XrayType Type { get; set; } public string GetPath() { switch (Type) { case XrayType.VLESS_TCP_TLS: return VlessTcpPath; case XrayType.VLESS_TCP_XTLS: return VlessTcpPath; case XrayType.VLESS_WS_TLS: return VlessWsPath; case XrayType.VMESS_TCP_TLS: return VmessTcpPath; case XrayType.VMESS_WS_TLS: return VmessWsPath; case XrayType.Trojan_TCP_TLS: return TrojanTcpPath; default: return string.Empty; } } } public enum XrayType { VLESS_TCP_TLS, VLESS_TCP_XTLS, VLESS_WS_TLS, VMESS_TCP_TLS, VMESS_WS_TLS, Trojan_TCP_TLS } }