updated java web-api with latest decode lib

This commit is contained in:
strawmanbobi
2026-01-10 20:04:25 +08:00
parent a5dd5f6304
commit a56acc638e
3 changed files with 24 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
<groupId>net.irext.webapi</groupId>
<artifactId>irext-webapi</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
<packaging>jar</packaging>
<url>https://opensource.irext.net/irext/index-api</url>

View File

@@ -441,6 +441,7 @@ public class WebAPIs {
Integer directDecode, Integer paraData) {
String decodeURL = URL_PREFIX + SERVICE_ONLINE_DECODE;
DecodeRequest decodeRequest = new DecodeRequest();
acStatus.setChangeWindDir(changeWindDir);
decodeRequest.setId(id);
decodeRequest.setToken(token);
decodeRequest.setIndexId(indexId);

View File

@@ -22,6 +22,7 @@ public class ACStatus {
private int acDisplay;
private int acSleep;
private int acTimer;
private int changeWindDir;
/**
* Default constructor for ACStatus.
@@ -40,9 +41,10 @@ public class ACStatus {
* @param acDisplay the display setting
* @param acSleep the sleep mode 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,
int acDisplay, int acSleep, int acTimer) {
int acDisplay, int acSleep, int acTimer, int changeWindDir) {
this.acPower = acPower;
this.acTemp = acTemp;
this.acMode = acMode;
@@ -51,6 +53,7 @@ public class ACStatus {
this.acDisplay = acDisplay;
this.acSleep = acSleep;
this.acTimer = acTimer;
this.changeWindDir = changeWindDir;
}
/**
@@ -196,4 +199,22 @@ public class ACStatus {
public void setAcTimer(int 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;
}
}