From 8df24b0a3dfd5b6f39c5393ef24eab25b70ab858 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 11 九月 2020 13:18:33 +0800 Subject: [PATCH] 202009111 --- HDL_ON/Entity/Function/AC.cs | 35 ----------------------------------- 1 files changed, 0 insertions(+), 35 deletions(-) diff --git a/HDL_ON/Entity/Function/AC.cs b/HDL_ON/Entity/Function/AC.cs index 0233929..952b8b2 100644 --- a/HDL_ON/Entity/Function/AC.cs +++ b/HDL_ON/Entity/Function/AC.cs @@ -1,8 +1,5 @@ 锘縰sing System; -using System.Collections; using System.Collections.Generic; -using Newtonsoft.Json.Linq; -using Shared; namespace HDL_ON.Entity { @@ -258,7 +255,6 @@ } } - Trait _trait_swting; [Newtonsoft.Json.JsonIgnore] public Trait trait_swting @@ -387,37 +383,6 @@ } } } - /// <summary> - /// 鎷兼帴銆佽幏鍙朅鍗忚鎿嶄綔鏁版嵁 - /// </summary> - public override JObject GetSendJObject(CommandType_A command) - { - var sendJob = new JObject(); - if (command == CommandType_A.write) - { - sendJob = new JObject { { "Namespace", vendor_code }, { "Command", command.ToString() }, { "Type", "device" } }; - JObject data = new JObject { { "sid", sid } }; - sendJob.Add("objects", data); - List<ControlData> controlData = new List<ControlData>(); - controlData.Add(new ControlData() - { - name = "on_off", - data_type = "Bool", - value = trait_on_off.value.ToString() - }); - - - } - else if (command == CommandType_A.read) - { - sendJob = new JObject { { "Namespace", vendor_code }, { "Command", command.ToString() }, { "Type", "device" } }; - var data = new JObject { { "sid", sid } }; - sendJob.Add("objects", data); - } - return sendJob; - } - - } } -- Gitblit v1.8.0