mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-14 23:38:34 +00:00
Pterodactyl
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
package me.totalfreedom.totalfreedommod.util;
|
||||
|
||||
import lombok.Getter;
|
||||
import org.json.simple.JSONObject;
|
||||
import org.json.simple.parser.JSONParser;
|
||||
import org.json.simple.parser.ParseException;
|
||||
|
||||
public class Response
|
||||
{
|
||||
@Getter
|
||||
private int code;
|
||||
@Getter
|
||||
private String message;
|
||||
|
||||
public Response(int code, String message)
|
||||
{
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public JSONObject getJSONMessage() throws ParseException
|
||||
{
|
||||
return (JSONObject) new JSONParser().parse(message);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user