package com.neucrack.communication;

import java.io.DataInputStream;

public class ToDevices {

	static public boolean WaitSignIn(DataInputStream inStream){
		return false;
	}
	static public boolean LightControl(String device,boolean isOn){
		return isOn;
	}
	static public boolean CurtainControl(String device,boolean isOn){
		return isOn;
	}
	static public boolean DoorControl(String device,boolean isOn){
		return isOn;
	}
	static public boolean GetDoorStatus(String device,boolean isOn){
		return isOn;
	}
	
	static public boolean GetLightStatus(String device,boolean isOn){
		return isOn;
	}
	static public boolean GetCurtainStatus(String device,boolean isOn){
		return isOn;
	}
	static public boolean GetSensorData(String device,int SensorName,int value){
		return false;
	}
	
}

@@ -66,93 +66,223 @@
 am;%0A
-%0Apublic class ToDevices %7B%0A%0A%09static public boolean WaitSignIn(DataInputStream inStream
+import java.io.DataOutputStream;%0A%0Apublic class ToDevices %7B%0A%09private DataInputStream mInStream=null;%0A%09private DataOutputStream mOutStream=null;%0A%09%0A%09public boolean WaitSignIn(String device,String userName,String passwd
 )%7B%0A%09
@@ -296,31 +296,24 @@
  false;%0A%09%7D%0A%09
-static 
 public boole
@@ -368,39 +368,32 @@
 eturn isOn;%0A%09%7D%0A%09
-static 
 public boolean C
@@ -446,39 +446,32 @@
 eturn isOn;%0A%09%7D%0A%09
-static 
 public boolean D
@@ -521,39 +521,32 @@
 eturn isOn;%0A%09%7D%0A%09
-static 
 public boolean G
@@ -608,23 +608,16 @@
 ;%0A%09%7D%0A%09%0A%09
-static 
 public b
@@ -678,39 +678,32 @@
 eturn isOn;%0A%09%7D%0A%09
-static 
 public boolean G
@@ -770,15 +770,8 @@
 %09%7D%0A%09
-static 
 publ

update to device interface