public virtual unsafe void AddForm(string p0, global::Com.Liveperson.Messaging.Model.Form p1) { if (id_addForm_Ljava_lang_String_Lcom_liveperson_messaging_model_Form_ == IntPtr.Zero) { id_addForm_Ljava_lang_String_Lcom_liveperson_messaging_model_Form_ = JNIEnv.GetMethodID(class_ref, "addForm", "(Ljava/lang/String;Lcom/liveperson/messaging/model/Form;)V"); } IntPtr native_p0 = JNIEnv.NewString(p0); try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(native_p0); __args [1] = new JValue(p1); if (((object)this).GetType() == ThresholdType) { JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_addForm_Ljava_lang_String_Lcom_liveperson_messaging_model_Form_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "addForm", "(Ljava/lang/String;Lcom/liveperson/messaging/model/Form;)V"), __args); } } finally { JNIEnv.DeleteLocalRef(native_p0); } }
public unsafe SendFormSubmissionMessageCommand(global::Com.Liveperson.Messaging.Model.Form p0, global::Com.Liveperson.Infra.Utils.MaskedMessage p1, global::Com.Liveperson.Messaging.Messaging 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(SendFormSubmissionMessageCommand)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/liveperson/messaging/model/Form;Lcom/liveperson/infra/utils/MaskedMessage;Lcom/liveperson/messaging/Messaging;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/liveperson/messaging/model/Form;Lcom/liveperson/infra/utils/MaskedMessage;Lcom/liveperson/messaging/Messaging;)V", __args); return; } if (id_ctor_Lcom_liveperson_messaging_model_Form_Lcom_liveperson_infra_utils_MaskedMessage_Lcom_liveperson_messaging_Messaging_ == IntPtr.Zero) { id_ctor_Lcom_liveperson_messaging_model_Form_Lcom_liveperson_infra_utils_MaskedMessage_Lcom_liveperson_messaging_Messaging_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/messaging/model/Form;Lcom/liveperson/infra/utils/MaskedMessage;Lcom/liveperson/messaging/Messaging;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_messaging_model_Form_Lcom_liveperson_infra_utils_MaskedMessage_Lcom_liveperson_messaging_Messaging_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_liveperson_messaging_model_Form_Lcom_liveperson_infra_utils_MaskedMessage_Lcom_liveperson_messaging_Messaging_, __args); } finally { } }
static void n_AddForm_Ljava_lang_String_Lcom_liveperson_messaging_model_Form_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Com.Liveperson.Messaging.Model.FormsManager __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.FormsManager> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer); global::Com.Liveperson.Messaging.Model.Form p1 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.Form> (native_p1, JniHandleOwnership.DoNotTransfer); __this.AddForm(p0, p1); }