Added Models for displaying files and all kinds of stuff

This commit is contained in:
schnulller
2022-06-06 22:44:56 +02:00
parent cb3a09a7de
commit 84048f9fe9
17 changed files with 248 additions and 47 deletions

17
HaWeb/Models/FileModel.cs Normal file
View File

@@ -0,0 +1,17 @@
namespace HaWeb.Models;
public class FileModel {
public string FileName { get; private set; }
public string Prefix { get; private set; }
public DateTime LastModified { get; private set; }
public bool IsUsed { get; private set; }
public bool InProduction { get; private set; }
public List<(string, string?)>? Fields { get; set; }
public FileModel(string name, string prefix, DateTime lastModified, bool isUSed, bool inProduction) {
FileName = name;
IsUsed = IsUsed;
LastModified = lastModified;
InProduction = InProduction;
}
}