25 lines
747 B
C#
25 lines
747 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Seenginx.Models
|
|
{
|
|
public class ConfigFile
|
|
{
|
|
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 = "is-hidden"; }
|
|
public void Unhide() { IsVisible = string.Empty; }
|
|
}
|
|
}
|