mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-07 04:55:00 +03:00
78b0b2224b
* Protect models * Json Context * YAML AOT-friendly optimization * Run the Test in AOT mode * Remove TaskScheduler * Clean build output * Workflows
54 lines
1.3 KiB
C#
54 lines
1.3 KiB
C#
namespace ServiceLib.Models.Dto;
|
|
|
|
public partial class ProfileItemModel : ReactiveObject
|
|
{
|
|
public bool IsActive { get; set; }
|
|
public string IndexId { get; set; }
|
|
public EConfigType ConfigType { get; set; }
|
|
public string Remarks { get; set; }
|
|
public string Address { get; set; }
|
|
public int Port { get; set; }
|
|
public string Network { get; set; }
|
|
public string StreamSecurity { get; set; }
|
|
public string Subid { get; set; }
|
|
public string SubRemarks { get; set; }
|
|
public int Sort { get; set; }
|
|
|
|
[Reactive]
|
|
public partial int Delay { get; set; }
|
|
|
|
public decimal Speed { get; set; }
|
|
|
|
[Reactive]
|
|
public partial string DelayVal { get; set; }
|
|
|
|
[Reactive]
|
|
public partial string SpeedVal { get; set; }
|
|
|
|
[Reactive]
|
|
public partial string IpInfo { get; set; }
|
|
|
|
[Reactive]
|
|
public partial string TodayUp { get; set; }
|
|
|
|
[Reactive]
|
|
public partial string TodayDown { get; set; }
|
|
|
|
[Reactive]
|
|
public partial string TotalUp { get; set; }
|
|
|
|
[Reactive]
|
|
public partial string TotalDown { get; set; }
|
|
|
|
public string GetSummary()
|
|
{
|
|
var summary = $"[{ConfigType}] {Remarks}";
|
|
if (!ConfigType.IsComplexType())
|
|
{
|
|
summary += $"({Address}:{Port})";
|
|
}
|
|
|
|
return summary;
|
|
}
|
|
}
|