More development
This commit is contained in:
@@ -6,18 +6,19 @@ namespace Seenginx.Models
|
||||
{
|
||||
public class ConfigFile
|
||||
{
|
||||
public string FullPath { get; set; }
|
||||
public string Folder { get; set; }
|
||||
public string Name { get; set; }
|
||||
public bool HasDraft => !string.IsNullOrEmpty(DraftName);
|
||||
public string DraftName { get; set; }
|
||||
public string OriginalBody { get; set; }
|
||||
public string Body { get; set; }
|
||||
public string DraftBody { get; set; }
|
||||
public string Permissions { get; set; }
|
||||
public DateTime LastUpdated { get; set; }
|
||||
public string[] Owners { get; set; }
|
||||
public string Permissions { get; set; }
|
||||
public bool CanBeDeleted { get; set; } = true;
|
||||
public string IsVisible { get; set; } = string.Empty;
|
||||
public string IsSelected { get; set; } = string.Empty;
|
||||
public bool HasDraft => !string.IsNullOrEmpty(DraftName);
|
||||
public bool CanBeDeleted { get; set; } = true;
|
||||
|
||||
public void Hide() { IsVisible = "is-hidden"; }
|
||||
public void Unhide() { IsVisible = string.Empty; }
|
||||
|
@@ -11,6 +11,12 @@ namespace Seenginx.Models
|
||||
public Exception Exception { get; private set; } = null;
|
||||
public D Data { get; private set; }
|
||||
|
||||
public Result() { }
|
||||
public Result(D data)
|
||||
{
|
||||
Data = data;
|
||||
}
|
||||
|
||||
public Result<D> Invalidate(string errorMessage, Exception exception = null)
|
||||
{
|
||||
AllOk = false;
|
||||
|
@@ -1,15 +0,0 @@
|
||||
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