public unsafe ConversationData(string p0, global::Com.Liveperson.Messaging.Model.Conversation p1)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            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() != typeof(ConversationData))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/String;Lcom/liveperson/messaging/model/Conversation;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Lcom/liveperson/messaging/model/Conversation;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Lcom_liveperson_messaging_model_Conversation_ == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Lcom_liveperson_messaging_model_Conversation_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Lcom/liveperson/messaging/model/Conversation;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Lcom_liveperson_messaging_model_Conversation_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Lcom_liveperson_messaging_model_Conversation_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
 static void n_QueryMessages_Lcom_liveperson_messaging_model_Conversation_Lcom_liveperson_messaging_commands_tasks_FetchConversationManager_DATA_SOURCE_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     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.Conversation p0 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.Conversation> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Liveperson.Messaging.Commands.Tasks.FetchConversationManager.DATA_SOURCE p1 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Commands.Tasks.FetchConversationManager.DATA_SOURCE> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.QueryMessages(p0, p1);
 }
示例#3
0
        public virtual unsafe void RefreshConversation(global::Com.Liveperson.Messaging.Model.Conversation p0)
        {
            if (id_refreshConversation_Lcom_liveperson_messaging_model_Conversation_ == IntPtr.Zero)
            {
                id_refreshConversation_Lcom_liveperson_messaging_model_Conversation_ = JNIEnv.GetMethodID(class_ref, "refreshConversation", "(Lcom/liveperson/messaging/model/Conversation;)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_refreshConversation_Lcom_liveperson_messaging_model_Conversation_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "refreshConversation", "(Lcom/liveperson/messaging/model/Conversation;)V"), __args);
                }
            } finally {
            }
        }
        protected virtual unsafe void QueryMessages(global::Com.Liveperson.Messaging.Model.Conversation p0, global::Com.Liveperson.Messaging.Commands.Tasks.FetchConversationManager.DATA_SOURCE p1)
        {
            if (id_queryMessages_Lcom_liveperson_messaging_model_Conversation_Lcom_liveperson_messaging_commands_tasks_FetchConversationManager_DATA_SOURCE_ == IntPtr.Zero)
            {
                id_queryMessages_Lcom_liveperson_messaging_model_Conversation_Lcom_liveperson_messaging_commands_tasks_FetchConversationManager_DATA_SOURCE_ = JNIEnv.GetMethodID(class_ref, "queryMessages", "(Lcom/liveperson/messaging/model/Conversation;Lcom/liveperson/messaging/commands/tasks/FetchConversationManager$DATA_SOURCE;)V");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_queryMessages_Lcom_liveperson_messaging_model_Conversation_Lcom_liveperson_messaging_commands_tasks_FetchConversationManager_DATA_SOURCE_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "queryMessages", "(Lcom/liveperson/messaging/model/Conversation;Lcom/liveperson/messaging/commands/tasks/FetchConversationManager$DATA_SOURCE;)V"), __args);
                }
            } finally {
            }
        }
示例#5
0
 static void n_RefreshConversation_Lcom_liveperson_messaging_model_Conversation_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Liveperson.Messaging.Commands.Tasks.FetchConversationManager __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Commands.Tasks.FetchConversationManager> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Liveperson.Messaging.Model.Conversation p0 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.Conversation> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.RefreshConversation(p0);
 }