Changing Frameworks
CSS and Fonts
This commit is contained in:
10
Seenginx.Models/ConfigFile.cs
Normal file
10
Seenginx.Models/ConfigFile.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Seenginx.Models
|
||||
{
|
||||
public class ConfigFile
|
||||
{
|
||||
}
|
||||
}
|
10
Seenginx.Models/DmesgFilter.cs
Normal file
10
Seenginx.Models/DmesgFilter.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Seenginx.Models
|
||||
{
|
||||
public class DmesgFilter
|
||||
{
|
||||
}
|
||||
}
|
10
Seenginx.Models/NginxFilter.cs
Normal file
10
Seenginx.Models/NginxFilter.cs
Normal 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
26
Seenginx.Models/Result.cs
Normal 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;
|
||||
}
|
||||
}
|
7
Seenginx.Models/Seenginx.Models.csproj
Normal file
7
Seenginx.Models/Seenginx.Models.csproj
Normal file
@@ -0,0 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
10
Seenginx.Models/SystemDFilter.cs
Normal file
10
Seenginx.Models/SystemDFilter.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Seenginx.Models
|
||||
{
|
||||
public class SystemDFilter
|
||||
{
|
||||
}
|
||||
}
|
10
Seenginx.Models/SystemDLogsFilter.cs
Normal file
10
Seenginx.Models/SystemDLogsFilter.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Seenginx.Models
|
||||
{
|
||||
public class SystemDLogsFilter
|
||||
{
|
||||
}
|
||||
}
|
15
Seenginx.Models/WeatherForecast.cs
Normal file
15
Seenginx.Models/WeatherForecast.cs
Normal 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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user