mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-29 06:18:08 +02:00
Add project files.
This commit is contained in:
commit
b2325a46ef
1351 changed files with 48136 additions and 0 deletions
74
Models/Mikrotik/MTInfo.cs
Normal file
74
Models/Mikrotik/MTInfo.cs
Normal file
|
@ -0,0 +1,74 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace MTWireGuard.Models.Mikrotik
|
||||
{
|
||||
public class MTInfo
|
||||
{
|
||||
[JsonProperty("architecture-name")]
|
||||
public string ArchitectureName { get; set; }
|
||||
|
||||
[JsonProperty("board-name")]
|
||||
public string BoardName { get; set; }
|
||||
|
||||
[JsonProperty("build-time")]
|
||||
public string BuildTime { get; set; }
|
||||
public string CPU { get; set; }
|
||||
|
||||
[JsonProperty("cpu-count")]
|
||||
public string CPUCount { get; set; }
|
||||
|
||||
[JsonProperty("cpu-frequency")]
|
||||
public string CPUFrequency { get; set; }
|
||||
|
||||
[JsonProperty("cpu-load")]
|
||||
public string CPULoad { get; set; }
|
||||
|
||||
[JsonProperty("free-hdd-space")]
|
||||
public string FreeHDDSpace { get; set; }
|
||||
|
||||
[JsonProperty("free-memory")]
|
||||
public string FreeMemory { get; set; }
|
||||
public string Platform { get; set; }
|
||||
|
||||
[JsonProperty("total-hdd-space")]
|
||||
public string TotalHDDSpace { get; set; }
|
||||
|
||||
[JsonProperty("total-memory")]
|
||||
public string TotalMemory { get; set; }
|
||||
public string Uptime { get; set; }
|
||||
public string Version { get; set; }
|
||||
|
||||
[JsonProperty("write-sect-since-reboot")]
|
||||
public string WriteSectSinceReboot { get; set; }
|
||||
|
||||
[JsonProperty("write-sect-total")]
|
||||
public string WriteSectTotal { get; set; }
|
||||
}
|
||||
|
||||
public class MTInfoViewModel
|
||||
{
|
||||
public string Architecture { get; set; }
|
||||
public string BoardName { get; set; }
|
||||
public string Platform { get; set; }
|
||||
public string CPU { get; set; }
|
||||
public byte CPUCount { get; set; }
|
||||
public short CPUFrequency { get; set; }
|
||||
public byte CPULoad { get; set; }
|
||||
public string TotalHDD { get; set; }
|
||||
public string UsedHDD { get; set; }
|
||||
public string FreeHDD { get; set; }
|
||||
public long TotalHDDBytes { get; set; }
|
||||
public long UsedHDDBytes { get; set; }
|
||||
public long FreeHDDBytes { get; set; }
|
||||
public byte FreeHDDPercentage { get; set; }
|
||||
public string TotalRAM { get; set; }
|
||||
public string UsedRAM { get; set; }
|
||||
public string FreeRAM { get; set; }
|
||||
public long TotalRAMBytes { get; set; }
|
||||
public long UsedRAMBytes { get; set; }
|
||||
public long FreeRAMBytes { get; set; }
|
||||
public byte FreeRAMPercentage { get; set; }
|
||||
public string UPTime { get; set; }
|
||||
public string Version { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue