public unsafe ChangeConversationTTRCommand(global::Com.Liveperson.Messaging.Model.AmsConversations p0, string p1, string p2, global::Com.Liveperson.Api.Response.Types.TTRType p3) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } IntPtr native_p1 = JNIEnv.NewString(p1); IntPtr native_p2 = JNIEnv.NewString(p2); try { JValue *__args = stackalloc JValue [4]; __args [0] = new JValue(p0); __args [1] = new JValue(native_p1); __args [2] = new JValue(native_p2); __args [3] = new JValue(p3); if (((object)this).GetType() != typeof(ChangeConversationTTRCommand)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/liveperson/messaging/model/AmsConversations;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/api/response/types/TTRType;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/liveperson/messaging/model/AmsConversations;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/api/response/types/TTRType;)V", __args); return; } if (id_ctor_Lcom_liveperson_messaging_model_AmsConversations_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_ == IntPtr.Zero) { id_ctor_Lcom_liveperson_messaging_model_AmsConversations_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/messaging/model/AmsConversations;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/api/response/types/TTRType;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_messaging_model_AmsConversations_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_liveperson_messaging_model_AmsConversations_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_, __args); } finally { JNIEnv.DeleteLocalRef(native_p1); JNIEnv.DeleteLocalRef(native_p2); } }
public unsafe HandlePendingMessagesTask(global::Com.Liveperson.Messaging.Model.AmsMessages p0, global::Com.Liveperson.Messaging.Model.AmsConversations p1, global::Com.Liveperson.Messaging.Controller.ConnectionsController p2) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); if (((object)this).GetType() != typeof(HandlePendingMessagesTask)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/liveperson/messaging/model/AmsMessages;Lcom/liveperson/messaging/model/AmsConversations;Lcom/liveperson/messaging/controller/ConnectionsController;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/liveperson/messaging/model/AmsMessages;Lcom/liveperson/messaging/model/AmsConversations;Lcom/liveperson/messaging/controller/ConnectionsController;)V", __args); return; } if (id_ctor_Lcom_liveperson_messaging_model_AmsMessages_Lcom_liveperson_messaging_model_AmsConversations_Lcom_liveperson_messaging_controller_ConnectionsController_ == IntPtr.Zero) { id_ctor_Lcom_liveperson_messaging_model_AmsMessages_Lcom_liveperson_messaging_model_AmsConversations_Lcom_liveperson_messaging_controller_ConnectionsController_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/messaging/model/AmsMessages;Lcom/liveperson/messaging/model/AmsConversations;Lcom/liveperson/messaging/controller/ConnectionsController;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_messaging_model_AmsMessages_Lcom_liveperson_messaging_model_AmsConversations_Lcom_liveperson_messaging_controller_ConnectionsController_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_liveperson_messaging_model_AmsMessages_Lcom_liveperson_messaging_model_AmsConversations_Lcom_liveperson_messaging_controller_ConnectionsController_, __args); } finally { } }