mirror of
https://github.com/ryzij/ServerMonitor.git
synced 2026-07-14 03:46:58 +00:00
Начал делать панель
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
namespace MonitorPanel.Core.Models;
|
||||
|
||||
public class Server(
|
||||
Guid id,
|
||||
string name,
|
||||
bool isHttps,
|
||||
string address,
|
||||
string? path,
|
||||
int port)
|
||||
{
|
||||
public readonly Guid Id = id;
|
||||
public string Name { get; set; } = name;
|
||||
public bool IsHttps { get; set; } = isHttps;
|
||||
public string Address { get; set; } = address;
|
||||
public string? Path { get; set; } = path;
|
||||
public int Port { get; set; } = port;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace MonitorPanel.Core.Models;
|
||||
|
||||
public class WeatherForecast
|
||||
{
|
||||
public DateOnly Date { get; set; }
|
||||
|
||||
public int TemperatureC { get; set; }
|
||||
|
||||
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
|
||||
|
||||
public string? Summary { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user