mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-30 06:39:27 +02:00
Update Models
This commit is contained in:
parent
0dad0d1a04
commit
c36204dbb9
27 changed files with 509 additions and 5 deletions
30
Application/Models/Mikrotik/Script.cs
Normal file
30
Application/Models/Mikrotik/Script.cs
Normal file
|
@ -0,0 +1,30 @@
|
|||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MTWireGuard.Application.Models.Mikrotik
|
||||
{
|
||||
public class ScriptViewModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Owner { get; set; }
|
||||
public string Source { get; set; }
|
||||
public DateTime LastStarted { get; set; }
|
||||
public int RunCount { get; set; }
|
||||
public List<string> Policies { get; set; }
|
||||
public bool IsValid { get; set; }
|
||||
public bool DontRequiredPermissions { get; set; }
|
||||
}
|
||||
|
||||
public class ScriptCreateModel
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public List<string> Policies { get; set; }
|
||||
public string Source { get; set; }
|
||||
public bool DontRequiredPermissions { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue