Back to project page gameapi-android.
The source code is released under:
MIT License
If you think the Android project gameapi-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.playtomic.android; import org.json.JSONObject; import org.json.JSONException; //from w w w.java 2 s . co m public class ListOptions extends JSONObject { public void set(String name, Object value) { try { put(name, value); } catch(JSONException err) { } } public void setFieldFilter(String name, Object value) { if(!has("filters")) { set("filters", new JSONObject()); } try { optJSONObject("filters").put(name, value); } catch(JSONException err) { } } }