ModifiedAt for items, use it by default

This commit is contained in:
2023-08-03 12:00:33 +02:00
parent fe0003e55f
commit 5f1ad922dc
18 changed files with 64 additions and 22 deletions

View File

@@ -15,6 +15,7 @@ public interface IItem
bool IsHidden { get; }
bool IsExists { get; }
DateTime? CreatedAt { get; }
DateTime? ModifiedAt { get; }
SupportsDelete CanDelete { get; }
bool CanRename { get; }
IContentProvider Provider { get; }

View File

@@ -34,6 +34,7 @@ public abstract class ContentProviderBase : IContentProvider
public AbsolutePath? Parent { get; }
public DateTime? CreatedAt => null;
public DateTime? ModifiedAt => null;
public string? Attributes => null;

View File

@@ -18,6 +18,7 @@ public class RootContentProvider : IRootContentProvider
public bool IsHidden => false;
public bool IsExists => true;
public DateTime? CreatedAt => null;
public DateTime? ModifiedAt => null;
public SupportsDelete CanDelete => SupportsDelete.False;
public bool CanRename => false;
public IContentProvider Provider => this;

View File

@@ -16,6 +16,7 @@ public record Container(
bool IsHidden,
bool IsExists,
DateTime? CreatedAt,
DateTime? ModifiedAt,
SupportsDelete CanDelete,
bool CanRename,
string? Attributes,

View File

@@ -14,6 +14,7 @@ public record Element(
bool IsHidden,
bool IsExists,
DateTime? CreatedAt,
DateTime? ModifiedAt,
SupportsDelete CanDelete,
bool CanRename,
string? Attributes,