26 lines
612 B
Java
26 lines
612 B
Java
|
package xyz.etztech.minecraftmanager.objects;
|
||
|
|
||
|
import com.google.gson.JsonArray;
|
||
|
import com.google.gson.JsonParser;
|
||
|
|
||
|
public class ModelResponse {
|
||
|
private JsonArray results;
|
||
|
|
||
|
public ModelResponse(String results) {
|
||
|
try {
|
||
|
JsonParser parser = new JsonParser();
|
||
|
this.results = (com.google.gson.JsonArray) parser.parse(results);
|
||
|
} catch (Exception ex) {
|
||
|
this.results = new JsonArray();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public JsonArray getResults() {
|
||
|
return results;
|
||
|
}
|
||
|
|
||
|
public void setResults(JsonArray results) {
|
||
|
this.results = results;
|
||
|
}
|
||
|
}
|