mirror of
https://github.com/2dust/v2rayN.git
synced 2026-08-04 22:32:05 +03:00
Fetch and display tested server IP and country (with emoji) in speed tests. Adds CountryExtension for country->emoji mapping and a new IpInfoResult type; ConnectionHandler now retrieves/parses IP API results and GetRealPingTime signature adjusted. Models and entities (ProfileItemModel, ProfileExItem, SpeedTestResult) gain IpInfo fields; ProfileExManager can store test IP info. UI/UX updated: new IpInfo column in ProfilesView (desktop and Avalonia), ResUI resource strings for "IP Info", and EServerColName ordering supports IpInfo. SpeedtestService now captures IP info and forwards it to the view model via the update function.
15 lines
332 B
C#
15 lines
332 B
C#
namespace ServiceLib.Models.Entities;
|
|
|
|
[Serializable]
|
|
public class ProfileExItem
|
|
{
|
|
[PrimaryKey]
|
|
public string IndexId { get; set; }
|
|
|
|
public int Delay { get; set; }
|
|
public decimal Speed { get; set; }
|
|
public int Sort { get; set; }
|
|
public string? Message { get; set; }
|
|
public string? IpInfo { get; set; }
|
|
}
|