pls work first try
This commit is contained in:
@ -0,0 +1,35 @@
|
||||
package xyz.mcutils.models.mojang;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import xyz.mcutils.models.CachedResponse;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user