Package com.xmage.ws.model

Examples of com.xmage.ws.model.SimpleResponse


* @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;
    }
View Full Code Here

TOP

Related Classes of com.xmage.ws.model.SimpleResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.