Seenginx/Seenginx.Models/ConfigFile.cs

26 lines
835 B
C#
Raw Normal View History

2020-04-12 20:01:46 +02:00
using System;
namespace Seenginx.Models
{
public class ConfigFile
{
2020-05-02 18:57:42 +02:00
public string FullPath { get; set; }
2020-04-13 23:58:26 +02:00
public string Folder { get; set; }
public string Name { get; set; }
2020-05-02 18:57:42 +02:00
public string Body { get; set; }
2020-04-24 00:18:16 +02:00
public string DraftBody { get; set; }
2020-05-02 18:57:42 +02:00
public string Permissions { get; set; }
2020-04-13 23:58:26 +02:00
public DateTime LastUpdated { get; set; }
public string[] Owners { get; set; }
public string IsVisible { get; set; } = string.Empty;
2020-04-20 00:52:36 +02:00
public string IsSelected { get; set; } = string.Empty;
2020-07-06 01:00:48 +02:00
public bool HasDraft => !string.IsNullOrEmpty(DraftBody);
2020-05-02 18:57:42 +02:00
public bool CanBeDeleted { get; set; } = true;
2020-04-17 00:50:23 +02:00
public void Hide() { IsVisible = "is-hidden"; }
public void Unhide() { IsVisible = null; }
2020-04-22 00:25:21 +02:00
public void Select() { IsSelected = "isSelected"; }
public void Deselect() { IsSelected = null; }
2020-04-12 20:01:46 +02:00
}
}