From 8d2b13aaa70bc6a8f521df4eab165caf078c33fa Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Fri, 23 Oct 2020 03:13:09 +0300 Subject: DataStore Improvements. --- .../Tango.Emulations/Emulators/MachineEmulator.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Software/Visual_Studio/Tango.Emulations') diff --git a/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs b/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs index f8682dd18..05752c378 100644 --- a/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs +++ b/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs @@ -1786,9 +1786,9 @@ namespace Tango.Emulations.Emulators var response = await Transporter.SendRequest(new PutDataStoreItemRequest() { Collection = "TEST", + Key = "int", Item = new PMR.DataStore.DataStoreItem() { - Key = "int", DataType = DataType.Int32, Int32Value = 100 } @@ -1826,9 +1826,9 @@ namespace Tango.Emulations.Emulators var response = await Transporter.SendRequest(new PutDataStoreItemRequest() { Collection = "TEST", + Key = "float", Item = new PMR.DataStore.DataStoreItem() { - Key = "float", DataType = DataType.Float, FloatValue = 101f } @@ -1866,9 +1866,9 @@ namespace Tango.Emulations.Emulators var response = await Transporter.SendRequest(new PutDataStoreItemRequest() { Collection = "TEST", + Key = "double", Item = new PMR.DataStore.DataStoreItem() { - Key = "double", DataType = DataType.Double, DoubleValue = 102d } @@ -1906,9 +1906,9 @@ namespace Tango.Emulations.Emulators var response = await Transporter.SendRequest(new PutDataStoreItemRequest() { Collection = "TEST", + Key = "bool", Item = new PMR.DataStore.DataStoreItem() { - Key = "bool", DataType = DataType.Boolean, BooleanValue = true } @@ -1946,9 +1946,9 @@ namespace Tango.Emulations.Emulators var response = await Transporter.SendRequest(new PutDataStoreItemRequest() { Collection = "TEST", + Key = "string", Item = new PMR.DataStore.DataStoreItem() { - Key = "string", DataType = DataType.String, StringValue = "String Value" } @@ -1986,9 +1986,9 @@ namespace Tango.Emulations.Emulators var response = await Transporter.SendRequest(new PutDataStoreItemRequest() { Collection = "TEST", + Key = "bytes", Item = new PMR.DataStore.DataStoreItem() { - Key = "bytes", DataType = DataType.Bytes, BytesValue = ByteString.CopyFromUtf8("Bytes TEST TEST TEST"), } -- cgit v1.3.1