2025-04-02 03:44:23 +00:00
|
|
|
namespace ServiceLib.Models;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// https://github.com/2dust/v2rayN/wiki/
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class VmessQRCode
|
2019-10-11 06:15:20 +00:00
|
|
|
{
|
2025-04-02 03:44:23 +00:00
|
|
|
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
|
|
|
|
|
public int v { get; set; } = 2;
|
2023-04-14 12:49:36 +00:00
|
|
|
|
2025-04-02 03:44:23 +00:00
|
|
|
public string ps { get; set; } = string.Empty;
|
2023-04-14 12:49:36 +00:00
|
|
|
|
2025-04-02 03:44:23 +00:00
|
|
|
public string add { get; set; } = string.Empty;
|
2023-04-14 12:49:36 +00:00
|
|
|
|
2025-04-02 03:44:23 +00:00
|
|
|
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
|
|
|
|
|
public int port { get; set; } = 0;
|
2023-04-14 12:49:36 +00:00
|
|
|
|
2025-04-02 03:44:23 +00:00
|
|
|
public string id { get; set; } = string.Empty;
|
2023-04-14 12:49:36 +00:00
|
|
|
|
2025-04-02 03:44:23 +00:00
|
|
|
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
|
|
|
|
|
public int aid { get; set; } = 0;
|
2023-04-14 12:49:36 +00:00
|
|
|
|
2025-04-02 03:44:23 +00:00
|
|
|
public string scy { get; set; } = string.Empty;
|
2021-04-17 04:56:51 +00:00
|
|
|
|
2025-04-02 03:44:23 +00:00
|
|
|
public string net { get; set; } = string.Empty;
|
2023-04-14 12:49:36 +00:00
|
|
|
|
2025-04-02 03:44:23 +00:00
|
|
|
public string type { get; set; } = string.Empty;
|
2023-04-14 12:49:36 +00:00
|
|
|
|
2025-04-02 03:44:23 +00:00
|
|
|
public string host { get; set; } = string.Empty;
|
2023-04-14 12:49:36 +00:00
|
|
|
|
2025-04-02 03:44:23 +00:00
|
|
|
public string path { get; set; } = string.Empty;
|
2023-04-14 12:49:36 +00:00
|
|
|
|
2025-04-02 03:44:23 +00:00
|
|
|
public string tls { get; set; } = string.Empty;
|
2023-04-14 12:49:36 +00:00
|
|
|
|
2025-04-02 03:44:23 +00:00
|
|
|
public string sni { get; set; } = string.Empty;
|
2023-04-14 12:49:36 +00:00
|
|
|
|
2025-04-02 03:44:23 +00:00
|
|
|
public string alpn { get; set; } = string.Empty;
|
2023-04-14 12:49:36 +00:00
|
|
|
|
2025-04-02 03:44:23 +00:00
|
|
|
public string fp { get; set; } = string.Empty;
|
|
|
|
|
}
|