static IntPtr n_GetAssignedAgentId_Lcom_liveperson_api_response_model_Participants_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Liveperson.Messaging.Model.ConversationData __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.ConversationData> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Liveperson.Api.Response.Model.Participants  p0     = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Api.Response.Model.Participants> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.NewString(__this.GetAssignedAgentId(p0));

            return(__ret);
        }
        static int n_CompareTo_Ljava_lang_Object_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Liveperson.Messaging.Model.ConversationData __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.ConversationData> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Lang.Object p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_p0, JniHandleOwnership.DoNotTransfer);
            int __ret = __this.CompareTo(p0);

            return(__ret);
        }
        protected virtual unsafe void UpdateConversation(global::Com.Liveperson.Messaging.Model.ConversationData p0)
        {
            if (id_updateConversation_Lcom_liveperson_messaging_model_ConversationData_ == IntPtr.Zero)
            {
                id_updateConversation_Lcom_liveperson_messaging_model_ConversationData_ = JNIEnv.GetMethodID(class_ref, "updateConversation", "(Lcom/liveperson/messaging/model/ConversationData;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_updateConversation_Lcom_liveperson_messaging_model_ConversationData_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "updateConversation", "(Lcom/liveperson/messaging/model/ConversationData;)V"), __args);
                }
            } finally {
            }
        }
Example #4
0
            public unsafe QueryRequestMessage(global::Com.Liveperson.Messaging.Commands.Tasks.FetchConversationManager __self, int p1, int p2, global::Com.Liveperson.Messaging.Model.ConversationData p3, bool p4)
                : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
                {
                    return;
                }

                try {
                    JValue *__args = stackalloc JValue [5];
                    __args [0] = new JValue(__self);
                    __args [1] = new JValue(p1);
                    __args [2] = new JValue(p2);
                    __args [3] = new JValue(p3);
                    __args [4] = new JValue(p4);
                    if (((object)this).GetType() != typeof(QueryRequestMessage))
                    {
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";IILcom/liveperson/messaging/model/ConversationData;Z)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                        global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";IILcom/liveperson/messaging/model/ConversationData;Z)V", __args);
                        return;
                    }

                    if (id_ctor_Lcom_liveperson_messaging_commands_tasks_FetchConversationManager_IILcom_liveperson_messaging_model_ConversationData_Z == IntPtr.Zero)
                    {
                        id_ctor_Lcom_liveperson_messaging_commands_tasks_FetchConversationManager_IILcom_liveperson_messaging_model_ConversationData_Z = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/messaging/commands/tasks/FetchConversationManager;IILcom/liveperson/messaging/model/ConversationData;Z)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_messaging_commands_tasks_FetchConversationManager_IILcom_liveperson_messaging_model_ConversationData_Z, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_liveperson_messaging_commands_tasks_FetchConversationManager_IILcom_liveperson_messaging_model_ConversationData_Z, __args);
                } finally {
                }
            }
 static void n_UpdateConversation_Lcom_liveperson_messaging_model_ConversationData_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Liveperson.Messaging.Network.Socket.ExConversationChangeNotificationResponseHandler __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Network.Socket.ExConversationChangeNotificationResponseHandler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Liveperson.Messaging.Model.ConversationData p0 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.ConversationData> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.UpdateConversation(p0);
 }