Example #1
0
 static void n_HandleError_Ljava_lang_Exception_Lcom_liveperson_infra_network_http_request_HttpRequest_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Com.Liveperson.Monitoring.Requests.BaseMonitoringRequest __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Monitoring.Requests.BaseMonitoringRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Exception p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Exception> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Liveperson.Infra.Network.Http.Request.HttpRequest p1 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Network.Http.Request.HttpRequest> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.HandleError(p0, p1);
 }
 public static unsafe void Execute(global::Com.Liveperson.Infra.Network.Http.Request.HttpRequest p0)
 {
     if (id_execute_Lcom_liveperson_infra_network_http_request_HttpRequest_ == IntPtr.Zero)
     {
         id_execute_Lcom_liveperson_infra_network_http_request_HttpRequest_ = JNIEnv.GetStaticMethodID(class_ref, "execute", "(Lcom/liveperson/infra/network/http/request/HttpRequest;)V");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         JNIEnv.CallStaticVoidMethod(class_ref, id_execute_Lcom_liveperson_infra_network_http_request_HttpRequest_, __args);
     } finally {
     }
 }
 public static unsafe global::Square.OkHttp3.Request Build(global::Com.Liveperson.Infra.Network.Http.Request.HttpRequest p0)
 {
     if (id_build_Lcom_liveperson_infra_network_http_request_HttpRequest_ == IntPtr.Zero)
     {
         id_build_Lcom_liveperson_infra_network_http_request_HttpRequest_ = JNIEnv.GetStaticMethodID(class_ref, "build", "(Lcom/liveperson/infra/network/http/request/HttpRequest;)Lokhttp3/Request;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Square.OkHttp3.Request __ret = global::Java.Lang.Object.GetObject <global::Square.OkHttp3.Request> (JNIEnv.CallStaticObjectMethod(class_ref, id_build_Lcom_liveperson_infra_network_http_request_HttpRequest_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
Example #4
0
        protected virtual unsafe void HandleError(global::Java.Lang.Exception p0, global::Com.Liveperson.Infra.Network.Http.Request.HttpRequest p1)
        {
            if (id_handleError_Ljava_lang_Exception_Lcom_liveperson_infra_network_http_request_HttpRequest_ == IntPtr.Zero)
            {
                id_handleError_Ljava_lang_Exception_Lcom_liveperson_infra_network_http_request_HttpRequest_ = JNIEnv.GetMethodID(class_ref, "handleError", "(Ljava/lang/Exception;Lcom/liveperson/infra/network/http/request/HttpRequest;)V");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_handleError_Ljava_lang_Exception_Lcom_liveperson_infra_network_http_request_HttpRequest_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "handleError", "(Ljava/lang/Exception;Lcom/liveperson/infra/network/http/request/HttpRequest;)V"), __args);
                }
            } finally {
            }
        }