Add Paused state for live data due to false positive of returning HostNotFound when they were only paused!

This commit is contained in:
kohlerpop1
2025-07-19 20:10:29 -04:00
parent a6188d8bb0
commit 567a952c00
3 changed files with 32 additions and 31 deletions

View File

@@ -52,6 +52,7 @@ public class LiveData {
public enum LiveStatus {
HostNotFound,
HostOnline,
HostPaused,
HostOffline,
}

View File

@@ -61,6 +61,7 @@ public class LiveDataMapper {
var statusId = status.getAsInt();
var statusValue = switch (statusId) {
case 2 -> LiveData.LiveStatus.HostOnline;
case 3 -> LiveData.LiveStatus.HostPaused;
case 4 -> LiveData.LiveStatus.HostOffline;
default -> LiveData.LiveStatus.HostNotFound;
};

61
pom.xml
View File

@@ -48,37 +48,36 @@
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>4.6</version>
<configuration>
<properties>
<owner>jwdeveloper</owner>
<years>2023-2024</years>
<email>jacekwoln@gmail.com</email>
</properties>
<aggregate>true</aggregate>
<licenseSets>
<licenseSet>
<header>license.txt</header>
<includes>
<include>**/*.java</include>
</includes>
</licenseSet>
</licenseSets>
</configuration>
<executions>
<execution>
<id>first</id>
<goals>
<goal>format</goal>
</goals>
<phase>process-sources</phase>
</execution>
</executions>
</plugin>
<!-- <plugin>-->
<!-- <groupId>com.mycila</groupId>-->
<!-- <artifactId>license-maven-plugin</artifactId>-->
<!-- <version>4.6</version>-->
<!-- <configuration>-->
<!-- <properties>-->
<!-- <owner>jwdeveloper</owner>-->
<!-- <years>2023-2024</years>-->
<!-- <email>jacekwoln@gmail.com</email>-->
<!-- </properties>-->
<!-- <aggregate>true</aggregate>-->
<!-- <licenseSets>-->
<!-- <licenseSet>-->
<!-- <header>license.txt</header>-->
<!-- <includes>-->
<!-- <include>**/*.java</include>-->
<!-- </includes>-->
<!-- </licenseSet>-->
<!-- </licenseSets>-->
<!-- </configuration>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <id>first</id>-->
<!-- <goals>-->
<!-- <goal>format</goal>-->
<!-- </goals>-->
<!-- <phase>process-sources</phase>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
</plugins>
</build>