mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-29 22:29:24 +02:00
40 lines
1 KiB
C#
40 lines
1 KiB
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MikrotikAPI.Models
|
|
{
|
|
public class IPPool
|
|
{
|
|
[JsonProperty(".id")]
|
|
public string Id { get; set; }
|
|
public string Name { get; set; }
|
|
public string Ranges { get; set; }
|
|
[JsonProperty("next-pool")]
|
|
public string NextPool { get; set; }
|
|
}
|
|
|
|
public class IPPoolCreateModel
|
|
{
|
|
[JsonProperty("name")]
|
|
public string Name { get; set; }
|
|
[JsonProperty("ranges")]
|
|
public string Ranges { get; set; }
|
|
[JsonProperty("next-pool")]
|
|
public string? NextPool { get; set; }
|
|
}
|
|
public class IPPoolUpdateModel
|
|
{
|
|
[JsonProperty(".id")]
|
|
public string Id { get; set; }
|
|
[JsonProperty("name")]
|
|
public string Name { get; set; }
|
|
[JsonProperty("ranges")]
|
|
public string Ranges { get; set; }
|
|
[JsonProperty("next-pool")]
|
|
public string NextPool { get; set; }
|
|
}
|
|
}
|