diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.DataStore.Remote/RemoteDataStoreItem.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.DataStore.Remote/RemoteDataStoreItem.cs | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/Software/Visual_Studio/Tango.DataStore.Remote/RemoteDataStoreItem.cs b/Software/Visual_Studio/Tango.DataStore.Remote/RemoteDataStoreItem.cs deleted file mode 100644 index 4327a0bd6..000000000 --- a/Software/Visual_Studio/Tango.DataStore.Remote/RemoteDataStoreItem.cs +++ /dev/null @@ -1,47 +0,0 @@ -using Newtonsoft.Json.Linq; -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; } - - private object _value; - public object Value - { - get - { - if (_value is JObject jObject) - { - return (jObject.ToObject<DataStoreProtoObject>()); - } - else - { - return _value; - } - } - set { _value = value; } - } - - 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); - } - } -} |
