* @author noxx
*/
public class SimpleResponseRepresenter implements Representer<SimpleResponse> {
public JSONObject toJSON(Resource<SimpleResponse> resource) {
SimpleResponse response = resource.getDefault();
JSONObject json = new JSONObject();
json.put("code", response.getCode());
json.put("message", response.getMessage());
return json;
}