aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.DataStore.Remote/RemoteDataStorePutRequest.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.DataStore.Remote/RemoteDataStorePutRequest.cs')
-rw-r--r--Software/Visual_Studio/Tango.DataStore.Remote/RemoteDataStorePutRequest.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.DataStore.Remote/RemoteDataStorePutRequest.cs b/Software/Visual_Studio/Tango.DataStore.Remote/RemoteDataStorePutRequest.cs
new file mode 100644
index 000000000..77aa5e41f
--- /dev/null
+++ b/Software/Visual_Studio/Tango.DataStore.Remote/RemoteDataStorePutRequest.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Tango.DataStore.Remote
+{
+ public class RemoteDataStorePutRequest
+ {
+ public String Collection { get; set; }
+ public DataType DataType { get; set; }
+ public String Key { get; set; }
+
+ private Object _value;
+ public Object Value
+ {
+ get
+ {
+ return DataType == DataType.Proto ? ProtoObject : _value;
+ }
+ set
+ {
+ if (value is DataStoreProtoObject protoValue)
+ {
+ ProtoObject = protoValue;
+ }
+ else
+ {
+ _value = value;
+ }
+ }
+ }
+
+ public DataStoreProtoObject ProtoObject { get; set; }
+ }
+}