Seenginx/Seenginx.Models/ConfigFile.cs

25 lines
742 B
C#
Raw Normal View History

2020-04-12 20:01:46 +02:00
using System;
using System.Collections.Generic;
using System.Text;
namespace Seenginx.Models
{
public class ConfigFile
{
2020-04-13 23:58:26 +02:00
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 ChangedBody { 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 void Hide() { IsVisible = "hide"; }
public void Unhide() { IsVisible = string.Empty; }
2020-04-12 20:01:46 +02:00
}
}