20 lines
386 B
Java
20 lines
386 B
Java
package com.zerohighdef.geoffrey.Models;
|
|
|
|
import com.google.gson.JsonObject;
|
|
|
|
public class GeoffreyResource {
|
|
private String name;
|
|
|
|
public GeoffreyResource(JsonObject resourceJSON) {
|
|
this.name = resourceJSON.get("name").getAsString();
|
|
}
|
|
|
|
GeoffreyResource(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
}
|