hirezapi.json.status.IncidentInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of HiRezApi-common Show documentation
Show all versions of HiRezApi-common Show documentation
Java-Based API Wrapper for Hi-Rez Studios games.
The newest version!
package hirezapi.json.status;
import java.time.Instant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class IncidentInfo {
private Instant timestamp;
private Status status;
private String description;
public enum Status {
Investigating,
Identified,
Monitoring,
Verifying,
Resolved,
Scheduled,
Update,
In_progress,
Completed;
public static Status get(String status) {
return valueOf(status.replace(" ", "_"));
}
@Override
public String toString() {
return this.name().replace("_", " ");
}
}
}