ModifiedAt for items, use it by default
This commit is contained in:
@@ -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; }
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -16,6 +16,7 @@ public record Container(
|
||||
bool IsHidden,
|
||||
bool IsExists,
|
||||
DateTime? CreatedAt,
|
||||
DateTime? ModifiedAt,
|
||||
SupportsDelete CanDelete,
|
||||
bool CanRename,
|
||||
string? Attributes,
|
||||
|
||||
@@ -14,6 +14,7 @@ public record Element(
|
||||
bool IsHidden,
|
||||
bool IsExists,
|
||||
DateTime? CreatedAt,
|
||||
DateTime? ModifiedAt,
|
||||
SupportsDelete CanDelete,
|
||||
bool CanRename,
|
||||
string? Attributes,
|
||||
|
||||
Reference in New Issue
Block a user