Basic DB service loose implementation (no DI)
This commit is contained in:
8
Models/DbEntry.cs
Normal file
8
Models/DbEntry.cs
Normal 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();
|
||||
}
|
@@ -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; }
|
||||
}
|
@@ -0,0 +1,6 @@
|
||||
namespace TBDel.Models;
|
||||
|
||||
// The same as FileEntry
|
||||
public class FolderEntry : FileEntry
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user