Added ShortHashDate to FileState.cs
authorpkanavos <pkanavos@gmail.com>
Fri, 22 Jun 2012 16:17:25 +0000 (19:17 +0300)
committerpkanavos <pkanavos@gmail.com>
Fri, 22 Jun 2012 16:17:25 +0000 (19:17 +0300)
trunk/Pithos.Core/FileState.cs

index 3995cac..92795ba 100644 (file)
@@ -109,28 +109,19 @@ namespace Pithos.Core
                 _checksum = value;
             }
         }
-
-        private string _shortHash;
-
+        
         /// <summary>
         /// An easy to calcualte hash over the entire file, used to detect file changes
         /// </summary>
         /// <remarks>The algorithm used to calculate this hash should be cheap</remarks>
-        [Property(NotNull=true,Default="")]
-        public string ShortHash
-        {
-            get
-            {
-                return _shortHash;
-            }
-            set
-            {
-                _shortHash = value;
-            }
-        }
-
+        [Property(NotNull = true, Default = "")]
+        public string ShortHash { get; set; }
 
         [Property]
+        public DateTime? ShortHashDate { get; set; }
+        
+        
+        [Property]
         public long? Version { get; set; }
 
         [Property]