Example #1
0
 static void n_OnFailure_Lokhttp3_Call_Ljava_io_IOException_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Okhttp3.ICallback   __this = global::Java.Lang.Object.GetObject <global::Okhttp3.ICallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Okhttp3.ICall       p0     = (global::Okhttp3.ICall)global::Java.Lang.Object.GetObject <global::Okhttp3.ICall> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Java.IO.IOException p1     = global::Java.Lang.Object.GetObject <global::Java.IO.IOException> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.OnFailure(p0, p1);
 }
Example #2
0
 static void n_OnResponse_Lokhttp3_Call_Lokhttp3_Response_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Okhttp3.ICallback __this = global::Java.Lang.Object.GetObject <global::Okhttp3.ICallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Okhttp3.ICall     p0     = (global::Okhttp3.ICall)global::Java.Lang.Object.GetObject <global::Okhttp3.ICall> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Okhttp3.Response  p1     = global::Java.Lang.Object.GetObject <global::Okhttp3.Response> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.OnResponse(p0, p1);
 }
Example #3
0
 static void n_CallEnqueue_Lokhttp3_Call_Lokhttp3_Callback_Z(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, bool p2)
 {
     global::Okhttp3.Internal.Internal __this = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Internal> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Okhttp3.ICall             p0     = (global::Okhttp3.ICall)global::Java.Lang.Object.GetObject <global::Okhttp3.ICall> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Okhttp3.ICallback         p1     = (global::Okhttp3.ICallback)global::Java.Lang.Object.GetObject <global::Okhttp3.ICallback> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.CallEnqueue(p0, p1, p2);
 }
        public unsafe void Enqueue(global::Okhttp3.ICallback p0)
        {
            if (id_enqueue_Lokhttp3_Callback_ == IntPtr.Zero)
            {
                id_enqueue_Lokhttp3_Callback_ = JNIEnv.GetMethodID(class_ref, "enqueue", "(Lokhttp3/Callback;)V");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_enqueue_Lokhttp3_Callback_, __args);
        }
Example #5
0
        public override unsafe void CallEnqueue(global::Okhttp3.ICall p0, global::Okhttp3.ICallback p1, bool p2)
        {
            const string __id = "callEnqueue.(Lokhttp3/Call;Lokhttp3/Callback;Z)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                __args [1] = new JniArgumentValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
                __args [2] = new JniArgumentValue(p2);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
            }
        }
 static void n_Enqueue_Lokhttp3_Callback_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Okhttp3.ICall     __this = global::Java.Lang.Object.GetObject <global::Okhttp3.ICall> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Okhttp3.ICallback p0     = (global::Okhttp3.ICallback)global::Java.Lang.Object.GetObject <global::Okhttp3.ICallback> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Enqueue(p0);
 }
Example #7
0
 public abstract void CallEnqueue(global::Okhttp3.ICall p0, global::Okhttp3.ICallback p1, bool p2);