aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.DataStore.Remote/RemoteDataStoreItem.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-10-23 03:58:38 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-10-23 03:58:38 +0300
commit2d803e9410cd383d8e66c300f86fe0f7374c81ea (patch)
tree7ac7ac109fd8cafd0752673e826123475b9f0e13 /Software/Visual_Studio/Tango.DataStore.Remote/RemoteDataStoreItem.cs
parent8d2b13aaa70bc6a8f521df4eab165caf078c33fa (diff)
downloadTango-2d803e9410cd383d8e66c300f86fe0f7374c81ea.tar.gz
Tango-2d803e9410cd383d8e66c300f86fe0f7374c81ea.zip
Improvements to DataStore Remote.
Diffstat (limited to 'Software/Visual_Studio/Tango.DataStore.Remote/RemoteDataStoreItem.cs')
-rw-r--r--Software/Visual_Studio/Tango.DataStore.Remote/RemoteDataStoreItem.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.DataStore.Remote/RemoteDataStoreItem.cs b/Software/Visual_Studio/Tango.DataStore.Remote/RemoteDataStoreItem.cs
new file mode 100644
index 000000000..c58e3ab28
--- /dev/null
+++ b/Software/Visual_Studio/Tango.DataStore.Remote/RemoteDataStoreItem.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Tango.DataStore.Remote
+{
+ public class RemoteDataStoreItem : IDataStoreItem
+ {
+ public string Guid { get; set; }
+ public string Key { get; set; }
+ public DataType Type { get; set; }
+ public object Value { get; set; }
+ public DateTime Date { get; set; }
+ public bool IsSynchronized { get; set; }
+
+ public RemoteDataStoreItem()
+ {
+ Guid = System.Guid.NewGuid().ToString();
+ Date = DateTime.UtcNow;
+ }
+
+ public override string ToString()
+ {
+ return DataStoreHelper.FormatDataStoreItem(this);
+ }
+ }
+}