Basic DB service loose implementation (no DI)

This commit is contained in:
2025-01-29 23:36:57 +03:30
parent c620844b36
commit 07feac2f65
7 changed files with 106 additions and 0 deletions

8
Models/DbEntry.cs Normal file
View File

@@ -0,0 +1,8 @@
namespace TBDel.Models;
// The DB entry - A list of files and folders
public class DbEntry
{
public List<FileEntry> Files { get; set; } = new();
public List<FolderEntry> Folders { get; set; } = new();
}

View File

@@ -0,0 +1,9 @@
namespace TBDel.Models;
public class FileEntry
{
// File path
public string Path { get; set; } = string.Empty;
// Date added
public DateTime DateAdded { get; set; }
}

View File

@@ -0,0 +1,6 @@
namespace TBDel.Models;
// The same as FileEntry
public class FolderEntry : FileEntry
{
}