Files
Java-Library/src/main/java/xyz/mcutils/models/mojang/CachedMojangEndpointStatus.java
Liam c7b3f76981
All checks were successful
Publish package to my Maven Repository / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 16s
give all models @ToString
2024-04-17 21:22:33 +01:00

36 lines
779 B
Java

package xyz.mcutils.models.mojang;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;
import xyz.mcutils.models.CachedResponse;
import java.util.Map;
@AllArgsConstructor
@Getter @ToString
public class CachedMojangEndpointStatus extends CachedResponse {
/**
* The list of endpoints and their status.
*/
private Map<String, Status> endpoints;
public enum Status {
/**
* The service is online and operational.
*/
ONLINE,
/**
* The service is online, but may be experiencing issues.
* This could be due to high load or other issues.
*/
DEGRADED,
/**
* The service is offline and not operational.
*/
OFFLINE
}
}