Moved to System.Text.Json - Removed all Library dependencies - Implemented DeleteCommand

This commit is contained in:
2025-02-04 13:28:06 +03:30
parent d716133230
commit 83347587e4
10 changed files with 171 additions and 121 deletions
+16 -1
View File
@@ -1,11 +1,26 @@
using System.Text.Json.Serialization;
namespace TBDel.Models;
public class FileEntry
{
// Unique 5 digit number for each entry
uint Id { get; set; }
public uint Id { get; set; }
// Absolute path
public string Path { get; set; } = string.Empty;
// Date added
public DateTime DateAdded { get; set; }
public FileEntry()
{
}
// To support trimmed binary
[JsonConstructor]
public FileEntry(uint id, string path, DateTime dateAdded)
{
Id = id;
Path = path;
DateAdded = dateAdded;
}
}