mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-30 14:49:31 +02:00
Update MikrotikAPI to support more options.
New connectivity methods.
This commit is contained in:
parent
3bea9768ba
commit
8d9b340aeb
9 changed files with 507 additions and 233 deletions
40
MikrotikAPI/Models/IPPool.cs
Normal file
40
MikrotikAPI/Models/IPPool.cs
Normal file
|
@ -0,0 +1,40 @@
|
|||
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; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue