mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-29 14:28:09 +02:00
27 lines
980 B
C#
27 lines
980 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Xml.Linq;
|
|
|
|
namespace MTWireGuard.Application.Models.Requests
|
|
{
|
|
public class UpdateClientRequest
|
|
{
|
|
[FromRoute(Name = "id"), Required]
|
|
public int ID { get; set; }
|
|
public string? Name { get; set; }
|
|
public string? Endpoint { get; set; }
|
|
public ushort? EndpointPort { get; set; }
|
|
public string? AllowedAddress { get; set; }
|
|
public string? PresharedKey { get; set; }
|
|
public string? PrivateKey { get; set; }
|
|
public string? PublicKey { get; set; }
|
|
public string Interface { get; set; }
|
|
public int? KeepAlive { get; set; }
|
|
public string? Expire { get; set; }
|
|
public string? Password { get; set; }
|
|
public int? Traffic { get; set; }
|
|
public bool InheritIP { get; set; }
|
|
public bool InheritDNS { get; set; }
|
|
public string? DNSAddress { get; set; }
|
|
}
|
|
}
|