package com.hdl.sdk.ttl.HDLAppliances.HDLAirCondition;
|
|
import com.hdl.sdk.ttl.HDLDeviceManger.Bean.AppliancesInfo;
|
|
import java.io.Serializable;
|
|
/**
|
* Created by JLChen on 2019/8/6
|
*/
|
public class AirHVACBackInfo implements Serializable {
|
private AppliancesInfo appliancesInfo;
|
private String remarks;
|
private int channelNum;//回路号
|
private int isOn;//0=关,1=开
|
private int indoorTemp;//室内温度
|
private int refTemp;//制冷温度点 0-84
|
private int heatTemp;//制热温度点 0-84
|
private int autoTemp;//自动温度点 0-84
|
private int wettedTemp;//抽湿温度点
|
private int airSpeed;//风速 0 =自动, 1 = 高风, 1 = 中风, 3 = 低风
|
private int airMode;//空调模式0 = 制冷, 1 = 制热, 1 = 通风, 3 =自动, 4 = 抽湿
|
// private int upTemp;//上升温度
|
// private int downTemp;//下降温度
|
private byte[] curState ;//控制回馈信息
|
|
public AirHVACBackInfo(){
|
|
}
|
|
public AirHVACBackInfo(AppliancesInfo mAppliancesInfo) {
|
this.appliancesInfo = mAppliancesInfo;
|
this.curState = mAppliancesInfo.getArrCurState();
|
this.remarks = mAppliancesInfo.getRemarks();
|
|
if (this.curState == null) return;
|
|
if (this.curState.length >= 13) {
|
this.channelNum = this.curState[0] & 0xFF;
|
this.indoorTemp = this.curState[2] & 0xFF;
|
this.refTemp = this.curState[3] & 0xFF;//制冷温度点 0-84
|
this.heatTemp = this.curState[4] & 0xFF;//制热温度点 0-84
|
this.autoTemp = this.curState[5] & 0xFF;//自动温度点 0-84
|
this.wettedTemp = this.curState[6] & 0xFF;//自动温度点 0-84
|
this.isOn = this.curState[8] & 0xFF;//只取低4位
|
this.airMode = this.curState[9] & 0xFF;
|
this.airSpeed = this.curState[10] & 0xFF;
|
}
|
|
}
|
|
public AppliancesInfo getAppliancesInfo() {
|
return appliancesInfo;
|
}
|
|
public void setAppliancesInfo(AppliancesInfo appliancesInfo) {
|
this.appliancesInfo = appliancesInfo;
|
}
|
|
public String getRemarks() {
|
return remarks;
|
}
|
|
public void setRemarks(String remarks) {
|
this.remarks = remarks;
|
}
|
|
public int getChannelNum() {
|
return channelNum;
|
}
|
|
public void setChannelNum(int channelNum) {
|
this.channelNum = channelNum;
|
}
|
|
public int getIsOn() {
|
return isOn;
|
}
|
|
public void setIsOn(int isOn) {
|
this.isOn = isOn;
|
}
|
|
public int getIndoorTemp() {
|
return indoorTemp;
|
}
|
|
public void setIndoorTemp(int indoorTemp) {
|
this.indoorTemp = indoorTemp;
|
}
|
|
public int getRefTemp() {
|
return refTemp;
|
}
|
|
public void setRefTemp(int refTemp) {
|
this.refTemp = refTemp;
|
}
|
|
public int getHeatTemp() {
|
return heatTemp;
|
}
|
|
public void setHeatTemp(int heatTemp) {
|
this.heatTemp = heatTemp;
|
}
|
|
public int getAutoTemp() {
|
return autoTemp;
|
}
|
|
public void setAutoTemp(int autoTemp) {
|
this.autoTemp = autoTemp;
|
}
|
|
public int getWettedTemp() {
|
return wettedTemp;
|
}
|
|
public void setWettedTemp(int wettedTemp) {
|
this.wettedTemp = wettedTemp;
|
}
|
|
public int getAirSpeed() {
|
return airSpeed;
|
}
|
|
public void setAirSpeed(int airSpeed) {
|
this.airSpeed = airSpeed;
|
}
|
|
public int getAirMode() {
|
return airMode;
|
}
|
|
public void setAirMode(int airMode) {
|
this.airMode = airMode;
|
}
|
|
public byte[] getCurState() {
|
return curState;
|
}
|
|
public void setCurState(byte[] curState) {
|
this.curState = curState;
|
}
|
|
}
|