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

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

* Fix accidental pom.xml comment!
This commit is contained in:
David Kohler
2025-07-19 20:12:19 -04:00
committed by GitHub
parent a6188d8bb0
commit 4443fbe554
3 changed files with 2 additions and 1 deletions

View File

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

View File

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

View File

@@ -78,7 +78,6 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>