mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-30 22:59:35 +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
39
MikrotikAPI/Models/IPAddress.cs
Normal file
39
MikrotikAPI/Models/IPAddress.cs
Normal file
|
@ -0,0 +1,39 @@
|
|||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MikrotikAPI.Models
|
||||
{
|
||||
public class IPAddress
|
||||
{
|
||||
[JsonProperty(".id")]
|
||||
public string Id { get; set; }
|
||||
[JsonProperty("actual-interface")]
|
||||
public string ActualInterface { get; set; }
|
||||
public string Address { get; set; }
|
||||
public bool Disabled { get; set; }
|
||||
public bool Dynamic { get; set; }
|
||||
public string Interface { get; set; }
|
||||
public bool Invalid { get; set; }
|
||||
public string Network { get; set; }
|
||||
}
|
||||
|
||||
public class IPAddressCreateModel
|
||||
{
|
||||
[JsonProperty("address")]
|
||||
public string Address { get; set; }
|
||||
[JsonProperty("interface")]
|
||||
public string Interface { get; set; }
|
||||
}
|
||||
|
||||
public class IPAddressUpdateModel
|
||||
{
|
||||
[JsonProperty(".id")]
|
||||
public string Id { set; get; }
|
||||
[JsonProperty("address")]
|
||||
public string Address { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue