public unsafe SendFileRequestRest(global::Com.Liveperson.Messaging.Network.Http.RestRequestParams p0, global::Com.Liveperson.Messaging.Network.Socket.Requests.SendMessageRequest p1) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); if (((object)this).GetType() != typeof(SendFileRequestRest)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/liveperson/messaging/network/http/RestRequestParams;Lcom/liveperson/messaging/network/socket/requests/SendMessageRequest;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/liveperson/messaging/network/http/RestRequestParams;Lcom/liveperson/messaging/network/socket/requests/SendMessageRequest;)V", __args); return; } if (id_ctor_Lcom_liveperson_messaging_network_http_RestRequestParams_Lcom_liveperson_messaging_network_socket_requests_SendMessageRequest_ == IntPtr.Zero) { id_ctor_Lcom_liveperson_messaging_network_http_RestRequestParams_Lcom_liveperson_messaging_network_socket_requests_SendMessageRequest_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/messaging/network/http/RestRequestParams;Lcom/liveperson/messaging/network/socket/requests/SendMessageRequest;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_messaging_network_http_RestRequestParams_Lcom_liveperson_messaging_network_socket_requests_SendMessageRequest_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_liveperson_messaging_network_http_RestRequestParams_Lcom_liveperson_messaging_network_socket_requests_SendMessageRequest_, __args); } finally { } }
static IntPtr n_AddRestDomain_Lcom_liveperson_messaging_network_http_RestRequestParams_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Liveperson.Messaging.Background.Filesharing.BaseTaskBundle __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Background.Filesharing.BaseTaskBundle> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Liveperson.Messaging.Network.Http.RestRequestParams p0 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Network.Http.RestRequestParams> (native_p0, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.AddRestDomain(p0)); return(__ret); }
static void n_SetParams_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_util_List_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2, IntPtr native_p3) { global::Com.Liveperson.Messaging.Network.Http.RestRequestParams __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Network.Http.RestRequestParams> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer); string p1 = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer); string p2 = JNIEnv.GetString(native_p2, JniHandleOwnership.DoNotTransfer); var p3 = global::Android.Runtime.JavaList <string> .FromJniHandle(native_p3, JniHandleOwnership.DoNotTransfer); __this.SetParams(p0, p1, p2, p3); }
public virtual unsafe void SetSendViaRest(bool p0, global::Com.Liveperson.Messaging.Network.Http.RestRequestParams p1) { if (id_setSendViaRest_ZLcom_liveperson_messaging_network_http_RestRequestParams_ == IntPtr.Zero) { id_setSendViaRest_ZLcom_liveperson_messaging_network_http_RestRequestParams_ = JNIEnv.GetMethodID(class_ref, "setSendViaRest", "(ZLcom/liveperson/messaging/network/http/RestRequestParams;)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_setSendViaRest_ZLcom_liveperson_messaging_network_http_RestRequestParams_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setSendViaRest", "(ZLcom/liveperson/messaging/network/http/RestRequestParams;)V"), __args); } } finally { } }
static bool n_IsNotValid(IntPtr jnienv, IntPtr native__this) { global::Com.Liveperson.Messaging.Network.Http.RestRequestParams __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Network.Http.RestRequestParams> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.IsNotValid); }
static void n_SetSendViaRest_ZLcom_liveperson_messaging_network_http_RestRequestParams_(IntPtr jnienv, IntPtr native__this, bool p0, IntPtr native_p1) { global::Com.Liveperson.Messaging.Commands.SendFileCommand __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Commands.SendFileCommand> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Liveperson.Messaging.Network.Http.RestRequestParams p1 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Network.Http.RestRequestParams> (native_p1, JniHandleOwnership.DoNotTransfer); __this.SetSendViaRest(p0, p1); }
public virtual unsafe global::Com.Liveperson.Messaging.Background.Filesharing.BaseTaskBundle AddRestDomain(global::Com.Liveperson.Messaging.Network.Http.RestRequestParams p0) { if (id_addRestDomain_Lcom_liveperson_messaging_network_http_RestRequestParams_ == IntPtr.Zero) { id_addRestDomain_Lcom_liveperson_messaging_network_http_RestRequestParams_ = JNIEnv.GetMethodID(class_ref, "addRestDomain", "(Lcom/liveperson/messaging/network/http/RestRequestParams;)Lcom/liveperson/messaging/background/filesharing/BaseTaskBundle;"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); global::Com.Liveperson.Messaging.Background.Filesharing.BaseTaskBundle __ret; if (((object)this).GetType() == ThresholdType) { __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Background.Filesharing.BaseTaskBundle> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_addRestDomain_Lcom_liveperson_messaging_network_http_RestRequestParams_, __args), JniHandleOwnership.TransferLocalRef); } else { __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Background.Filesharing.BaseTaskBundle> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "addRestDomain", "(Lcom/liveperson/messaging/network/http/RestRequestParams;)Lcom/liveperson/messaging/background/filesharing/BaseTaskBundle;"), __args), JniHandleOwnership.TransferLocalRef); } return(__ret); } finally { } }