RemoteInterfaceConfig.cs 481 B

12345678910111213
  1. namespace NetworkTool.Client.Models;
  2. public sealed class RemoteInterfaceConfig
  3. {
  4. public string Interface { get; init; } = string.Empty;
  5. public bool Dhcp4 { get; init; }
  6. public string IP { get; init; } = string.Empty;
  7. public int Prefix { get; init; }
  8. public string Gateway { get; init; } = string.Empty;
  9. public IReadOnlyList<string> Dns { get; init; } = [];
  10. public string DnsSummary => Dns is null || Dns.Count == 0 ? "无" : string.Join(", ", Dns);
  11. }