Changing Frameworks

CSS and Fonts
This commit is contained in:
2020-04-12 20:01:46 +02:00
parent 5180f56e6f
commit a02b607bc6
38 changed files with 2813 additions and 1002 deletions

View File

@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Seenginx.Models
{
public class ConfigFile
{
}
}

View File

@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Seenginx.Models
{
public class DmesgFilter
{
}
}

View File

@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Seenginx.Models
{
public class NginxFilter
{
}
}

26
Seenginx.Models/Result.cs Normal file
View File

@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Seenginx.Models
{
public class Result<D>
{
public bool AllOk { get; private set; } = true;
public string ErrorMessage { get; private set; }
public Exception Exception { get; private set; } = null;
public D Data { get; private set; }
public Result<D> Invalidate(string errorMessage, Exception exception = null)
{
AllOk = false;
ErrorMessage = errorMessage;
if (exception != null)
Exception = exception;
return this;
}
public void SetData(D data) => Data = data;
}
}

View File

@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Seenginx.Models
{
public class SystemDFilter
{
}
}

View File

@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Seenginx.Models
{
public class SystemDLogsFilter
{
}
}

View File

@@ -0,0 +1,15 @@
using System;
namespace Seenginx.Models
{
public class WeatherForecast
{
public DateTime Date { get; set; }
public int TemperatureC { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
public string Summary { get; set; }
}
}