public org.json.JSONArray put(int index, JSONObject jsonObject) { #if VERBOSE_LOGGING Debug.Log(MethodBase.GetCurrentMethod().Name); #endif JNIFind(); if (_jcJsonArray == IntPtr.Zero) { Debug.LogError("_jcJsonObject is not initialized"); return(null); } if (_jmPut == IntPtr.Zero) { Debug.LogError("_jmPut is not initialized"); return(null); } if (null == jsonObject) { Debug.LogError("jsonObject is null"); return(null); } if (jsonObject.GetInstance() == IntPtr.Zero) { Debug.LogError("jsonObject instance is not initialized"); return(null); } int arg1 = index; IntPtr arg2 = jsonObject.GetInstance(); IntPtr result = AndroidJNI.CallObjectMethod(_instance, _jmPut, new jvalue[] { new jvalue() { i = arg1 }, new jvalue() { l = arg2 } }); return(this); }
public org.json.JSONArray put(int index, JSONObject jsonObject) { #if VERBOSE_LOGGING Debug.Log(MethodBase.GetCurrentMethod().Name); #endif JNIFind(); if (_jcJsonArray == IntPtr.Zero) { Debug.LogError("_jcJsonObject is not initialized"); return null; } if (_jmPut == IntPtr.Zero) { Debug.LogError("_jmPut is not initialized"); return null; } if (null == jsonObject) { Debug.LogError("jsonObject is null"); return null; } if (jsonObject.GetInstance() == IntPtr.Zero) { Debug.LogError("jsonObject instance is not initialized"); return null; } int arg1 = index; IntPtr arg2 = jsonObject.GetInstance(); IntPtr result = AndroidJNI.CallObjectMethod(_instance, _jmPut, new jvalue[] { new jvalue() { i = arg1 }, new jvalue() { l = arg2 } }); return this; }