Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/tuyanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-10-27 15:47:11 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-10-27 15:47:11 +0300
commit56ba3bf92decc1fd166d2207bd8326dfc32e2e0a (patch)
tree53d52cb64f1078197b3dc43bab5aa75e552dc079 /TuyaLocalResponse.cs
parente7b97d1ba238cfdf0ae7c60b8b21367104ff5e6e (diff)
API
Diffstat (limited to 'TuyaLocalResponse.cs')
-rw-r--r--TuyaLocalResponse.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/TuyaLocalResponse.cs b/TuyaLocalResponse.cs
new file mode 100644
index 0000000..6d6f94e
--- /dev/null
+++ b/TuyaLocalResponse.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace com.clusterrr.TuyaNet
+{
+ public class TuyaLocalResponse
+ {
+ public TuyaCommand Command { get; }
+ public int ReturnCode { get; }
+ public string JSON { get; }
+
+ internal TuyaLocalResponse(TuyaCommand command, int returnCode, string json)
+ {
+ Command = command;
+ ReturnCode = returnCode;
+ JSON = json;
+ }
+
+ public override string ToString() => $"{Command}: {JSON} (return code = {ReturnCode})";
+ }
+}