techgarage-ir.MTWireGuard/Application/Models/Mikrotik/WGServer.cs

57 lines
1.9 KiB
C#
Raw Normal View History

2023-06-02 15:26:29 +03:30
namespace MTWireGuard.Application.Models.Mikrotik
{
2024-01-25 20:36:44 +03:30
public class WGServerDBModel
{
public int Id { get; set; }
public string? DNSAddress { get; set; }
public bool InheritDNS { get; set; }
public bool UseIPPool { get; set; }
public int? IPPoolId { get; set; }
}
2023-06-02 15:26:29 +03:30
public class WGServerViewModel
{
public int Id { get; set; }
public string Name { get; set; }
public bool IsEnabled { get; set; }
public ushort ListenPort { get; set; }
public ushort MTU { get; set; }
public string PrivateKey { get; set; }
public string PublicKey { get; set; }
public bool Running { get; set; }
2024-01-25 20:36:44 +03:30
public string IPAddress { get; set; }
public string DNSAddress { get; set; }
public bool InheritDNS { get; set; }
public bool UseIPPool { get; set; }
public string IPPool { get; set; }
2023-06-02 15:26:29 +03:30
}
public class ServerCreateModel
{
public string Name { get; set; }
public bool Enabled { get; set; }
public string ListenPort { get; set; }
public string MTU { get; set; }
public string PrivateKey { get; set; }
2024-01-25 20:36:44 +03:30
public string IPAddress { get; set; }
public bool UseIPPool { get; set; }
public int IPPoolId { get; set; }
public bool InheritDNS { get; set; }
public string DNSAddress { get; set; }
2023-06-02 15:26:29 +03:30
}
public class ServerUpdateModel
{
public int Id { get; set; }
public string Name { get; set; }
2024-01-25 20:36:44 +03:30
public ushort? ListenPort { get; set; }
public ushort? MTU { get; set; }
public string? PrivateKey { get; set; }
public string? IPAddress { get; set; }
public bool UseIPPool { get; set; }
public int? IPPoolId { get; set; }
public bool InheritDNS { get; set; }
public string? DNSAddress { get; set; }
2023-06-02 15:26:29 +03:30
}
}