Начал делать панель

This commit is contained in:
2026-07-07 03:36:07 +03:00
parent c4ead0d8de
commit 7c4d557dc4
10 changed files with 151 additions and 0 deletions
@@ -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>