From e29de9af8f507d288a61d9459fb3d1f72976876f Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期一, 18 五月 2020 10:40:08 +0800 Subject: [PATCH] 2020-05-18-1 --- HDL_ON/DAL/Server/HttpServerRequest.cs | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/HDL_ON/DAL/Server/HttpServerRequest.cs b/HDL_ON/DAL/Server/HttpServerRequest.cs index d7c2587..58a2c2a 100644 --- a/HDL_ON/DAL/Server/HttpServerRequest.cs +++ b/HDL_ON/DAL/Server/HttpServerRequest.cs @@ -745,7 +745,7 @@ { sid = "000101" + guid + "0102010001AABB", name = ss.GetValue("Name").ToString(), - trait = new List<Trait>() { + propertList = new List<Trait>() { new Trait { attri="on_off", max=100,min = 0, value= new List<string> { "on","off"} }, }, roomIdList = roomIds, @@ -771,7 +771,7 @@ { sid = "000101" + guid + "0202020001AABB", name = ss.GetValue("Name").ToString(), - trait = new List<Trait>() { + propertList = new List<Trait>() { new Trait { attri="brightness", max=100,min = 0, value= new List<string> { "up","down"} }, }, roomIdList = roomIds, @@ -798,7 +798,7 @@ { sid = "000101" + guid + "0202040001AABB", name = ss.GetValue("Name").ToString(), - trait = new List<Trait>() { + propertList = new List<Trait>() { new Trait { attri="brightness", max=100,min = 0, value= new List<string> { "on","off"} }, new Trait { attri="color", max=100,min = 0, value= new List<string> { "255", "255", "255" } }, }, @@ -827,7 +827,7 @@ { sid = "000101" + guid + "0204010001AABB", name = ss.GetValue("Name").ToString(), - trait = new List<Trait>() { + propertList = new List<Trait>() { new Trait { attri="on_off", max=1,min = 0, value= new List<string> { "on","off"} }, new Trait { attri="mode", max = 2,min =0,value = new List<string>{ "auto", "heat", "cool","dry" } }, new Trait { attri = "fan",max = 3,min =0,value = new List<string>{ "low", "mid", "high" ,"auto"} }, @@ -859,7 +859,7 @@ name = ss.GetValue("Name").ToString(), roomIdList = roomIds, //roomIdList = new List<string>() { roomSid }, - trait = new List<Trait>() { + propertList = new List<Trait>() { new Trait { attri="on_off", max=2,min = 0, value= new List<string> { "on","off","stop"} }, },// "curtain", lastState = "寮�", @@ -885,7 +885,7 @@ name = ss.GetValue("Name").ToString(), roomIdList = roomIds, //roomIdList = new List<string>() { roomSid }, - trait = new List<Trait>() { + propertList = new List<Trait>() { new Trait { attri="on_off", max=100,min = 0, value= new List<string> { "on","off","stop"} }, },// "rollingshutter", lastState = "20%", @@ -911,7 +911,7 @@ name = ss.GetValue("Name").ToString(), roomIdList = roomIds, //roomIdList = new List<string>() { roomSid }, - trait = new List<Trait>() { + propertList = new List<Trait>() { new Trait { attri="on_off", max=100,min = 0, value= new List<string> { "on","off","stop"} }, }, lastState = "20%", -- Gitblit v1.8.0