コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
        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 {
            }
        }
コード例 #8
0
 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));
 }
コード例 #9
0
 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);
            }
        }
コード例 #11
0
        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 {
            }
        }
コード例 #12
0
 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 {
     }
 }
コード例 #13
0
 protected abstract global::Com.Liveperson.Messaging.Model.MessagingChatMessage.MessageType GetMessageType(global::Com.Liveperson.Infra.Utils.MaskedMessage p0);
コード例 #14
0
        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);
            }
        }