protected virtual unsafe void AddMessageToDBAndSend(string p0, global::Com.Liveperson.Infra.Utils.MaskedMessage p1) { if (id_addMessageToDBAndSend_Ljava_lang_String_Lcom_liveperson_infra_utils_MaskedMessage_ == IntPtr.Zero) { id_addMessageToDBAndSend_Ljava_lang_String_Lcom_liveperson_infra_utils_MaskedMessage_ = JNIEnv.GetMethodID(class_ref, "addMessageToDBAndSend", "(Ljava/lang/String;Lcom/liveperson/infra/utils/MaskedMessage;)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_addMessageToDBAndSend_Ljava_lang_String_Lcom_liveperson_infra_utils_MaskedMessage_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "addMessageToDBAndSend", "(Ljava/lang/String;Lcom/liveperson/infra/utils/MaskedMessage;)V"), __args); } } finally { JNIEnv.DeleteLocalRef(native_p0); } }
static void n_SetServerMessage_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Liveperson.Infra.Utils.MaskedMessage __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Utils.MaskedMessage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer); __this.ServerMessage = p0; }
static IntPtr n_AddMessage_Lcom_liveperson_infra_utils_MaskedMessage_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Liveperson.Infra.Utils.MaskedMessage p0 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Utils.MaskedMessage> (native_p0, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.AddMessage(p0)); return(__ret); }
static IntPtr n_GetMessageType_Lcom_liveperson_infra_utils_MaskedMessage_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { 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.Infra.Utils.MaskedMessage p0 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Utils.MaskedMessage> (native_p0, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.GetMessageType(p0)); return(__ret); }
static void n_AddMessageToDBAndSend_Ljava_lang_String_Lcom_liveperson_infra_utils_MaskedMessage_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Com.Liveperson.Messaging.Commands.SendMessageCommand __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Commands.SendMessageCommand> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer); global::Com.Liveperson.Infra.Utils.MaskedMessage p1 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Utils.MaskedMessage> (native_p1, JniHandleOwnership.DoNotTransfer); __this.AddMessageToDBAndSend(p0, p1); }
static IntPtr n_CreateNewChatMessage_Ljava_lang_String_Lcom_liveperson_infra_utils_MaskedMessage_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Com.Liveperson.Messaging.Commands.SendMessageCommand __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Commands.SendMessageCommand> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer); global::Com.Liveperson.Infra.Utils.MaskedMessage p1 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Utils.MaskedMessage> (native_p1, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.CreateNewChatMessage(p0, p1)); return(__ret); }
public virtual unsafe global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle AddMessage(global::Com.Liveperson.Infra.Utils.MaskedMessage p0) { if (id_addMessage_Lcom_liveperson_infra_utils_MaskedMessage_ == IntPtr.Zero) { id_addMessage_Lcom_liveperson_infra_utils_MaskedMessage_ = JNIEnv.GetMethodID(class_ref, "addMessage", "(Lcom/liveperson/infra/utils/MaskedMessage;)Lcom/liveperson/messaging/background/filesharing/UploadFileTaskBundle;"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle __ret; if (((object)this).GetType() == ThresholdType) { __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_addMessage_Lcom_liveperson_infra_utils_MaskedMessage_, __args), JniHandleOwnership.TransferLocalRef); } else { __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "addMessage", "(Lcom/liveperson/infra/utils/MaskedMessage;)Lcom/liveperson/messaging/background/filesharing/UploadFileTaskBundle;"), __args), JniHandleOwnership.TransferLocalRef); } return(__ret); } finally { } }
static IntPtr n_GetDbMessage(IntPtr jnienv, IntPtr native__this) { global::Com.Liveperson.Infra.Utils.MaskedMessage __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Utils.MaskedMessage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.NewString(__this.DbMessage)); }
static bool n_IsMasked(IntPtr jnienv, IntPtr native__this) { global::Com.Liveperson.Infra.Utils.MaskedMessage __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Utils.MaskedMessage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.IsMasked); }
public unsafe ResendURLMessageCommand(global::Com.Liveperson.Messaging.Messaging p0, string p1, string p2, string p3, global::Com.Liveperson.Infra.Utils.MaskedMessage p4) : 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); IntPtr native_p3 = JNIEnv.NewString(p3); try { JValue *__args = stackalloc JValue [5]; __args [0] = new JValue(p0); __args [1] = new JValue(native_p1); __args [2] = new JValue(native_p2); __args [3] = new JValue(native_p3); __args [4] = new JValue(p4); if (((object)this).GetType() != typeof(ResendURLMessageCommand)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/liveperson/messaging/Messaging;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/infra/utils/MaskedMessage;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/liveperson/messaging/Messaging;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/infra/utils/MaskedMessage;)V", __args); return; } if (id_ctor_Lcom_liveperson_messaging_Messaging_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_utils_MaskedMessage_ == IntPtr.Zero) { id_ctor_Lcom_liveperson_messaging_Messaging_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_utils_MaskedMessage_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/messaging/Messaging;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/infra/utils/MaskedMessage;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_messaging_Messaging_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_utils_MaskedMessage_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_liveperson_messaging_Messaging_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_utils_MaskedMessage_, __args); } finally { JNIEnv.DeleteLocalRef(native_p1); JNIEnv.DeleteLocalRef(native_p2); JNIEnv.DeleteLocalRef(native_p3); } }
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 { } }
protected override unsafe global::Com.Liveperson.Messaging.Model.MessagingChatMessage.MessageType GetMessageType(global::Com.Liveperson.Infra.Utils.MaskedMessage p0) { if (id_getMessageType_Lcom_liveperson_infra_utils_MaskedMessage_ == IntPtr.Zero) { id_getMessageType_Lcom_liveperson_infra_utils_MaskedMessage_ = JNIEnv.GetMethodID(class_ref, "getMessageType", "(Lcom/liveperson/infra/utils/MaskedMessage;)Lcom/liveperson/messaging/model/MessagingChatMessage$MessageType;"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); global::Com.Liveperson.Messaging.Model.MessagingChatMessage.MessageType __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.MessagingChatMessage.MessageType> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_getMessageType_Lcom_liveperson_infra_utils_MaskedMessage_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { } }
protected abstract global::Com.Liveperson.Messaging.Model.MessagingChatMessage.MessageType GetMessageType(global::Com.Liveperson.Infra.Utils.MaskedMessage p0);
protected virtual unsafe global::Com.Liveperson.Messaging.Model.MessagingChatMessage CreateNewChatMessage(string p0, global::Com.Liveperson.Infra.Utils.MaskedMessage p1) { if (id_createNewChatMessage_Ljava_lang_String_Lcom_liveperson_infra_utils_MaskedMessage_ == IntPtr.Zero) { id_createNewChatMessage_Ljava_lang_String_Lcom_liveperson_infra_utils_MaskedMessage_ = JNIEnv.GetMethodID(class_ref, "createNewChatMessage", "(Ljava/lang/String;Lcom/liveperson/infra/utils/MaskedMessage;)Lcom/liveperson/messaging/model/MessagingChatMessage;"); } IntPtr native_p0 = JNIEnv.NewString(p0); try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(native_p0); __args [1] = new JValue(p1); global::Com.Liveperson.Messaging.Model.MessagingChatMessage __ret; if (((object)this).GetType() == ThresholdType) { __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.MessagingChatMessage> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_createNewChatMessage_Ljava_lang_String_Lcom_liveperson_infra_utils_MaskedMessage_, __args), JniHandleOwnership.TransferLocalRef); } else { __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.MessagingChatMessage> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "createNewChatMessage", "(Ljava/lang/String;Lcom/liveperson/infra/utils/MaskedMessage;)Lcom/liveperson/messaging/model/MessagingChatMessage;"), __args), JniHandleOwnership.TransferLocalRef); } return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }