Package com.ponysdk.ui.server.addon

Examples of com.ponysdk.ui.server.addon.JSONBuilder


    protected void restate(final JSONObject jsonObject) throws JSONException {
        final String msg = jsonObject.getString("message");

        System.out.println("Received message: " + msg);

        final JSONBuilder jso = new JSONBuilder();
        jso.put("message", "i received #" + msg);
        jso.put("option", "an option");
        jso.addChild("child1").put("submsg1", "here").put("submsg2", "there");

        update(jso.build());
    }
View Full Code Here

TOP

Related Classes of com.ponysdk.ui.server.addon.JSONBuilder

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.