updated java web-api with latest decode lib
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>net.irext.webapi</groupId>
|
<groupId>net.irext.webapi</groupId>
|
||||||
<artifactId>irext-webapi</artifactId>
|
<artifactId>irext-webapi</artifactId>
|
||||||
<version>1.5.1</version>
|
<version>1.5.2</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<url>https://opensource.irext.net/irext/index-api</url>
|
<url>https://opensource.irext.net/irext/index-api</url>
|
||||||
|
|||||||
@@ -441,6 +441,7 @@ public class WebAPIs {
|
|||||||
Integer directDecode, Integer paraData) {
|
Integer directDecode, Integer paraData) {
|
||||||
String decodeURL = URL_PREFIX + SERVICE_ONLINE_DECODE;
|
String decodeURL = URL_PREFIX + SERVICE_ONLINE_DECODE;
|
||||||
DecodeRequest decodeRequest = new DecodeRequest();
|
DecodeRequest decodeRequest = new DecodeRequest();
|
||||||
|
acStatus.setChangeWindDir(changeWindDir);
|
||||||
decodeRequest.setId(id);
|
decodeRequest.setId(id);
|
||||||
decodeRequest.setToken(token);
|
decodeRequest.setToken(token);
|
||||||
decodeRequest.setIndexId(indexId);
|
decodeRequest.setIndexId(indexId);
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ public class ACStatus {
|
|||||||
private int acDisplay;
|
private int acDisplay;
|
||||||
private int acSleep;
|
private int acSleep;
|
||||||
private int acTimer;
|
private int acTimer;
|
||||||
|
private int changeWindDir;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default constructor for ACStatus.
|
* Default constructor for ACStatus.
|
||||||
@@ -40,9 +41,10 @@ public class ACStatus {
|
|||||||
* @param acDisplay the display setting
|
* @param acDisplay the display setting
|
||||||
* @param acSleep the sleep mode setting
|
* @param acSleep the sleep mode setting
|
||||||
* @param acTimer the timer setting
|
* @param acTimer the timer setting
|
||||||
|
* @param changeWindDir the command to change wind direction
|
||||||
*/
|
*/
|
||||||
public ACStatus(int acPower, int acMode, int acTemp, int acWindSpeed, int acWindDir,
|
public ACStatus(int acPower, int acMode, int acTemp, int acWindSpeed, int acWindDir,
|
||||||
int acDisplay, int acSleep, int acTimer) {
|
int acDisplay, int acSleep, int acTimer, int changeWindDir) {
|
||||||
this.acPower = acPower;
|
this.acPower = acPower;
|
||||||
this.acTemp = acTemp;
|
this.acTemp = acTemp;
|
||||||
this.acMode = acMode;
|
this.acMode = acMode;
|
||||||
@@ -51,6 +53,7 @@ public class ACStatus {
|
|||||||
this.acDisplay = acDisplay;
|
this.acDisplay = acDisplay;
|
||||||
this.acSleep = acSleep;
|
this.acSleep = acSleep;
|
||||||
this.acTimer = acTimer;
|
this.acTimer = acTimer;
|
||||||
|
this.changeWindDir = changeWindDir;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -196,4 +199,22 @@ public class ACStatus {
|
|||||||
public void setAcTimer(int acTimer) {
|
public void setAcTimer(int acTimer) {
|
||||||
this.acTimer = acTimer;
|
this.acTimer = acTimer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the change wind direction setting.
|
||||||
|
*
|
||||||
|
* @return the change wind direction setting
|
||||||
|
*/
|
||||||
|
public int getChangeWindDir() {
|
||||||
|
return changeWindDir;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets change wind direction setting.
|
||||||
|
*
|
||||||
|
* @param changeWindDir the change wind direction setting
|
||||||
|
*/
|
||||||
|
public void setChangeWindDir(int changeWindDir) {
|
||||||
|
this.changeWindDir = changeWindDir;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user