mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 08:49:40 -05:00
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:
@@ -52,6 +52,7 @@ public class LiveData {
|
||||
public enum LiveStatus {
|
||||
HostNotFound,
|
||||
HostOnline,
|
||||
HostPaused,
|
||||
HostOffline,
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user