diff options
Diffstat (limited to 'Jellyfin.Data/Interfaces/IAuditableEntity.cs')
| -rw-r--r-- | Jellyfin.Data/Interfaces/IAuditableEntity.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Jellyfin.Data/Interfaces/IAuditableEntity.cs b/Jellyfin.Data/Interfaces/IAuditableEntity.cs new file mode 100644 index 000000000..4420446ae --- /dev/null +++ b/Jellyfin.Data/Interfaces/IAuditableEntity.cs @@ -0,0 +1,20 @@ +using System; + +namespace Jellyfin.Data.Interfaces +{ + /// <summary> + /// An interface representing an entity that has creation/modification dates. + /// </summary> + public interface IAuditableEntity + { + /// <summary> + /// Gets the date this entity was created. + /// </summary> + public DateTime DateCreated { get; } + + /// <summary> + /// Gets or sets the date this entity was modified. + /// </summary> + public DateTime DateModified { get; set; } + } +} |
