static IntPtr n_Protocol_Lokhttp3_Protocol_(IntPtr jnienv, IntPtr native__this, IntPtr native_protocol)
            {
                global::Okhttp3.Response.Builder __this   = global::Java.Lang.Object.GetObject <global::Okhttp3.Response.Builder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
                global::Okhttp3.Protocol         protocol = global::Java.Lang.Object.GetObject <global::Okhttp3.Protocol> (native_protocol, JniHandleOwnership.DoNotTransfer);
                IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Protocol(protocol));

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

                try {
                    JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                    __args [0] = new JniArgumentValue((protocol == null) ? IntPtr.Zero : ((global::Java.Lang.Object)protocol).Handle);
                    var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                    return(global::Java.Lang.Object.GetObject <global::Okhttp3.Response.Builder> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
                } finally {
                }
            }
Beispiel #3
0
        public unsafe StatusLine(global::Okhttp3.Protocol protocol, int code, string message)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lokhttp3/Protocol;ILjava/lang/String;)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_message = JNIEnv.NewString(message);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((protocol == null) ? IntPtr.Zero : ((global::Java.Lang.Object)protocol).Handle);
                __args [1] = new JniArgumentValue(code);
                __args [2] = new JniArgumentValue(native_message);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_message);
            }
        }
Beispiel #4
0
        public static unsafe global::Okhttp3.Response.Builder ReadHttp2HeadersList(global::Okhttp3.Headers headerBlock, global::Okhttp3.Protocol protocol)
        {
            const string __id = "readHttp2HeadersList.(Lokhttp3/Headers;Lokhttp3/Protocol;)Lokhttp3/Response$Builder;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((headerBlock == null) ? IntPtr.Zero : ((global::Java.Lang.Object)headerBlock).Handle);
                __args [1] = new JniArgumentValue((protocol == null) ? IntPtr.Zero : ((global::Java.Lang.Object)protocol).Handle);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(global::Java.Lang.Object.GetObject <global::Okhttp3.Response.Builder> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }