You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
835 B
C#

using System;
namespace Seenginx.Models
{
public class ConfigFile
{
public string FullPath { get; set; }
public string Folder { get; set; }
public string Name { 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 IsVisible { get; set; } = string.Empty;
public string IsSelected { get; set; } = string.Empty;
public bool HasDraft => !string.IsNullOrEmpty(DraftBody);
public bool CanBeDeleted { get; set; } = true;
public void Hide() { IsVisible = "is-hidden"; }
public void Unhide() { IsVisible = null; }
public void Select() { IsSelected = "isSelected"; }
public void Deselect() { IsSelected = null; }
}
}