瀏覽代碼

Remove IAuditableEntity

Patrick Barron 3 年之前
父節點
當前提交
098bd5cfa9
共有 2 個文件被更改,包括 7 次插入24 次删除
  1. 7 4
      Jellyfin.Data/Entities/Security/Device.cs
  2. 0 20
      Jellyfin.Data/Interfaces/IAuditableEntity.cs

+ 7 - 4
Jellyfin.Data/Entities/Security/Device.cs

@@ -2,14 +2,13 @@ using System;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;
 using System.ComponentModel.DataAnnotations.Schema;
 using System.Globalization;
 using System.Globalization;
-using Jellyfin.Data.Interfaces;
 
 
 namespace Jellyfin.Data.Entities.Security
 namespace Jellyfin.Data.Entities.Security
 {
 {
     /// <summary>
     /// <summary>
     /// An entity representing a device.
     /// An entity representing a device.
     /// </summary>
     /// </summary>
-    public class Device : IAuditableEntity
+    public class Device
     {
     {
         /// <summary>
         /// <summary>
         /// Initializes a new instance of the <see cref="Device"/> class.
         /// Initializes a new instance of the <see cref="Device"/> class.
@@ -85,10 +84,14 @@ namespace Jellyfin.Data.Entities.Security
         /// </summary>
         /// </summary>
         public bool IsActive { get; set; }
         public bool IsActive { get; set; }
 
 
-        /// <inheritdoc />
+        /// <summary>
+        /// Gets or sets the date created.
+        /// </summary>
         public DateTime DateCreated { get; set; }
         public DateTime DateCreated { get; set; }
 
 
-        /// <inheritdoc />
+        /// <summary>
+        /// Gets or sets the date modified.
+        /// </summary>
         public DateTime DateModified { get; set; }
         public DateTime DateModified { get; set; }
 
 
         /// <summary>
         /// <summary>

+ 0 - 20
Jellyfin.Data/Interfaces/IAuditableEntity.cs

@@ -1,20 +0,0 @@
-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; }
-    }
-}