/** * @param context Request global parameters. * @param gadget Values for the gadget being rendered. * @throws JSONException If parameters can't be extracted or aren't correctly formed. */ public JsonRpcGadgetContext(JSONObject context, JSONObject gadget) throws JSONException { this.context = context; this.gadget = gadget; url = getUrl(gadget); moduleId = getModuleId(gadget); userPrefs = getUserPrefs(gadget); locale = getLocale(context); view = context.optString("view"); ignoreCache = context.optBoolean("ignoreCache"); container = context.optString("container"); debug = context.optBoolean("debug"); }
/** * @param context Request global parameters. * @param gadget Values for the gadget being rendered. * @throws JSONException If parameters can't be extracted or aren't correctly formed. */ public JsonRpcGadgetContext(JSONObject context, JSONObject gadget) throws JSONException { this.context = context; this.gadget = gadget; url = getUrl(gadget); moduleId = getModuleId(gadget); userPrefs = getUserPrefs(gadget); locale = getLocale(context); view = context.optString("view"); ignoreCache = context.optBoolean("ignoreCache"); container = context.optString("container"); debug = context.optBoolean("debug"); }
/** * @param context Request global parameters. * @param gadget Values for the gadget being rendered. * @throws JSONException If parameters can't be extracted or aren't correctly formed. */ public JsonRpcGadgetContext(JSONObject context, JSONObject gadget) throws JSONException { this.context = context; this.gadget = gadget; url = getUrl(gadget); moduleId = getModuleId(gadget); userPrefs = getUserPrefs(gadget); locale = getLocale(context); view = context.optString("view"); ignoreCache = context.optBoolean("ignoreCache"); container = context.optString("container"); debug = context.optBoolean("debug"); }