package uk.me.graphe.server.messages;

import org.json.JSONException;
import org.json.JSONObject;

public class OpenGraphMessage extends Message {

    private int mId;

    public OpenGraphMessage(int id) {
        mId = id;
    }

    @Override
    public String getMessage() {
        return "opengraph";
    }

    @Override
    public String toJson() {
        JSONObject repr = new JSONObject();
        try {
            repr.put("message", getMessage());
            repr.put("id", mId);
        } catch (JSONException jse) {
            throw new Error(jse);
        }
        return repr.toString();
    }

}

@@ -293,17 +293,17 @@
 rn %22open
-g
+G
 raph%22;%0A 
@@ -441,16 +441,21 @@
 ssage%22, 
+this.
 getMessa

make the message on opengraph suitably camelcased