Moved to System.Text.Json - Removed all Library dependencies - Implemented DeleteCommand
This commit is contained in:
+16
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user