public static unsafe global::GoogleGson.JsonElement ParseResponseJson(global::Com.Algorithmia.Client.HttpResponse p0) { if (id_parseResponseJson_Lcom_algorithmia_client_HttpResponse_ == IntPtr.Zero) { id_parseResponseJson_Lcom_algorithmia_client_HttpResponse_ = JNIEnv.GetStaticMethodID(class_ref, "parseResponseJson", "(Lcom/algorithmia/client/HttpResponse;)Lcom/google/gson/JsonElement;"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); global::GoogleGson.JsonElement __ret = global::Java.Lang.Object.GetObject <global::GoogleGson.JsonElement> (JNIEnv.CallStaticObjectMethod(class_ref, id_parseResponseJson_Lcom_algorithmia_client_HttpResponse_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { } }
public unsafe AlgoSuccess(global::GoogleGson.JsonElement p0, global::Com.Algorithmia.Algo.Metadata p1, string p2) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } IntPtr native_p2 = JNIEnv.NewString(p2); try { JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(native_p2); if (GetType() != typeof(AlgoSuccess)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lcom/google/gson/JsonElement;Lcom/algorithmia/algo/Metadata;Ljava/lang/String;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/google/gson/JsonElement;Lcom/algorithmia/algo/Metadata;Ljava/lang/String;)V", __args); return; } if (id_ctor_Lcom_google_gson_JsonElement_Lcom_algorithmia_algo_Metadata_Ljava_lang_String_ == IntPtr.Zero) { id_ctor_Lcom_google_gson_JsonElement_Lcom_algorithmia_algo_Metadata_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/google/gson/JsonElement;Lcom/algorithmia/algo/Metadata;Ljava/lang/String;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_google_gson_JsonElement_Lcom_algorithmia_algo_Metadata_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_google_gson_JsonElement_Lcom_algorithmia_algo_Metadata_Ljava_lang_String_, __args); } finally { JNIEnv.DeleteLocalRef(native_p2); } }
Java.Lang.Object global::GoogleGson.IJsonDeserializer.Deserialize(global::GoogleGson.JsonElement p0, global::Java.Lang.Reflect.IType p1, global::GoogleGson.IJsonDeserializationContext p2) { return(this.Deserialize(p0, p1, p2) as Java.Lang.Object); }
public static unsafe global::Com.Algorithmia.Algo.AlgoResponse JsonToAlgoResponse(global::GoogleGson.JsonElement p0) { if (id_jsonToAlgoResponse_Lcom_google_gson_JsonElement_ == IntPtr.Zero) { id_jsonToAlgoResponse_Lcom_google_gson_JsonElement_ = JNIEnv.GetStaticMethodID(class_ref, "jsonToAlgoResponse", "(Lcom/google/gson/JsonElement;)Lcom/algorithmia/algo/AlgoResponse;"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); global::Com.Algorithmia.Algo.AlgoResponse __ret = global::Java.Lang.Object.GetObject <global::Com.Algorithmia.Algo.AlgoResponse> (JNIEnv.CallStaticObjectMethod(class_ref, id_jsonToAlgoResponse_Lcom_google_gson_JsonElement_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { } }