26 lines
532 B
C#
26 lines
532 B
C#
using System.Net;
|
|
|
|
namespace VirtualDDNSRouter.Server.Models;
|
|
|
|
public record Rule
|
|
{
|
|
public string name { get; set; } = string.Empty;
|
|
public string apiKey { get; set; } = string.Empty;
|
|
public string path { get; set; } = string.Empty;
|
|
|
|
public Rule()
|
|
{
|
|
} // Needed for AOT static deserializer
|
|
}
|
|
|
|
public record Route
|
|
{
|
|
public string path { get; set; } = string.Empty;
|
|
public IPAddress ipAddress { get; set; } = IPAddress.None;
|
|
|
|
public ushort port { get; set; } = 80;
|
|
|
|
public Route()
|
|
{
|
|
}
|
|
} |