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; }
|
2020-04-24 00:18:16 +02:00
|
|
|
|
public string DraftBody { get; set; }
|
2020-04-13 23:58:26 +02:00
|
|
|
|
public DateTime LastUpdated { get; set; }
|
|
|
|
|
public string[] Owners { get; set; }
|
|
|
|
|
public string Permissions { get; set; }
|
|
|
|
|
public bool CanBeDeleted { get; set; } = true;
|
2020-04-16 00:49:34 +02:00
|
|
|
|
public string IsVisible { get; set; } = string.Empty;
|
2020-04-20 00:52:36 +02:00
|
|
|
|
public string IsSelected { get; set; } = string.Empty;
|
2020-04-16 00:49:34 +02:00
|
|
|
|
|
2020-04-17 00:50:23 +02:00
|
|
|
|
public void Hide() { IsVisible = "is-hidden"; }
|
2020-04-16 00:49:34 +02:00
|
|
|
|
public void Unhide() { IsVisible = string.Empty; }
|
2020-04-22 00:25:21 +02:00
|
|
|
|
public void Select() { IsSelected = "isSelected"; }
|
2020-04-20 00:52:36 +02:00
|
|
|
|
public void Deselect() { IsSelected = string.Empty; }
|
2020-04-12 20:01:46 +02:00
|
|
|
|
}
|
|
|
|
|
}
|