static IntPtr n_Body_Lokhttp3_ResponseBody_(IntPtr jnienv, IntPtr native__this, IntPtr native_body)
            {
                global::Okhttp3.Response.Builder __this = global::Java.Lang.Object.GetObject <global::Okhttp3.Response.Builder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
                global::Okhttp3.ResponseBody     body   = global::Java.Lang.Object.GetObject <global::Okhttp3.ResponseBody> (native_body, JniHandleOwnership.DoNotTransfer);
                IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Body(body));

                return(__ret);
            }
            public virtual unsafe global::Okhttp3.Response.Builder Body(global::Okhttp3.ResponseBody body)
            {
                const string __id = "body.(Lokhttp3/ResponseBody;)Lokhttp3/Response$Builder;";

                try {
                    JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                    __args [0] = new JniArgumentValue((body == null) ? IntPtr.Zero : ((global::Java.Lang.Object)body).Handle);
                    var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                    return(global::Java.Lang.Object.GetObject <global::Okhttp3.Response.Builder> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
                } finally {
                }
            }
Ejemplo n.º 3
0
        public unsafe global::Okhttp3.ResponseBody OpenResponseBody(global::Okhttp3.Response p0)
        {
            if (id_openResponseBody_Lokhttp3_Response_ == IntPtr.Zero)
            {
                id_openResponseBody_Lokhttp3_Response_ = JNIEnv.GetMethodID(class_ref, "openResponseBody", "(Lokhttp3/Response;)Lokhttp3/ResponseBody;");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            global::Okhttp3.ResponseBody __ret = global::Java.Lang.Object.GetObject <global::Okhttp3.ResponseBody> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_openResponseBody_Lokhttp3_Response_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
Ejemplo n.º 4
0
 static IntPtr n_ContentType(IntPtr jnienv, IntPtr native__this)
 {
     global::Okhttp3.ResponseBody __this = global::Java.Lang.Object.GetObject <global::Okhttp3.ResponseBody> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.ContentType()));
 }
Ejemplo n.º 5
0
 static long n_ContentLength(IntPtr jnienv, IntPtr native__this)
 {
     global::Okhttp3.ResponseBody __this = global::Java.Lang.Object.GetObject <global::Okhttp3.ResponseBody> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.ContentLength());
 }
Ejemplo n.º 6
0
 static void n_Close(IntPtr jnienv, IntPtr native__this)
 {
     global::Okhttp3.ResponseBody __this = global::Java.Lang.Object.GetObject <global::Okhttp3.ResponseBody> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Close();
 }