static IntPtr n_Put_Lokhttp3_RequestBody_(IntPtr jnienv, IntPtr native__this, IntPtr native_body) { global::Okhttp3.Request.Builder __this = global::Java.Lang.Object.GetObject <global::Okhttp3.Request.Builder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Okhttp3.RequestBody body = global::Java.Lang.Object.GetObject <global::Okhttp3.RequestBody> (native_body, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Put(body)); return(__ret); }
static IntPtr n_Method_Ljava_lang_String_Lokhttp3_RequestBody_(IntPtr jnienv, IntPtr native__this, IntPtr native_method, IntPtr native_body) { global::Okhttp3.Request.Builder __this = global::Java.Lang.Object.GetObject <global::Okhttp3.Request.Builder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string method = JNIEnv.GetString(native_method, JniHandleOwnership.DoNotTransfer); global::Okhttp3.RequestBody body = global::Java.Lang.Object.GetObject <global::Okhttp3.RequestBody> (native_body, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Method(method, body)); return(__ret); }
public static unsafe global::Okhttp3.MultipartBody.Part Create(global::Okhttp3.RequestBody body) { const string __id = "create.(Lokhttp3/RequestBody;)Lokhttp3/MultipartBody$Part;"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((body == null) ? IntPtr.Zero : ((global::Java.Lang.Object)body).Handle); var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args); return(global::Java.Lang.Object.GetObject <global::Okhttp3.MultipartBody.Part> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { } }
public unsafe global::Okhttp3.MultipartBody.Builder AddPart(global::Okhttp3.RequestBody body) { const string __id = "addPart.(Lokhttp3/RequestBody;)Lokhttp3/MultipartBody$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.InvokeAbstractObjectMethod(__id, this, __args); return(global::Java.Lang.Object.GetObject <global::Okhttp3.MultipartBody.Builder> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { } }
static IntPtr n_ContentType(IntPtr jnienv, IntPtr native__this) { global::Okhttp3.RequestBody __this = global::Java.Lang.Object.GetObject <global::Okhttp3.RequestBody> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.ToLocalJniHandle(__this.ContentType())); }
static long n_ContentLength(IntPtr jnienv, IntPtr native__this) { global::Okhttp3.RequestBody __this = global::Java.Lang.Object.GetObject <global::Okhttp3.RequestBody> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.ContentLength()); }
public static unsafe global::Okhttp3.MultipartBody.Part CreateFormData(string name, string filename, global::Okhttp3.RequestBody body) { const string __id = "createFormData.(Ljava/lang/String;Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/MultipartBody$Part;"; IntPtr native_name = JNIEnv.NewString(name); IntPtr native_filename = JNIEnv.NewString(filename); try { JniArgumentValue *__args = stackalloc JniArgumentValue [3]; __args [0] = new JniArgumentValue(native_name); __args [1] = new JniArgumentValue(native_filename); __args [2] = new JniArgumentValue((body == null) ? IntPtr.Zero : ((global::Java.Lang.Object)body).Handle); var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args); return(global::Java.Lang.Object.GetObject <global::Okhttp3.MultipartBody.Part> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { JNIEnv.DeleteLocalRef(native_name); JNIEnv.DeleteLocalRef(native_filename); } }
public virtual unsafe global::Okhttp3.Request.Builder Method(string method, global::Okhttp3.RequestBody body) { const string __id = "method.(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;"; IntPtr native_method = JNIEnv.NewString(method); try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue(native_method); __args [1] = 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.Request.Builder> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { JNIEnv.DeleteLocalRef(native_method); } }
static void n_WriteTo_Lokio_BufferedSink_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Okhttp3.RequestBody __this = global::Java.Lang.Object.GetObject <global::Okhttp3.RequestBody> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Okio.IBufferedSink p0 = (global::Okio.IBufferedSink)global::Java.Lang.Object.GetObject <global::Okio.IBufferedSink> (native_p0, JniHandleOwnership.DoNotTransfer); __this.WriteTo(p0); }