public unsafe AmsConsumerURLViewHolder(global::Android.Views.View p0, global::Com.Liveperson.Messaging.Model.MessagingChatMessage.MessageType p1, global::Com.Liveperson.Infra.Messaging_ui.View.Adapter.Copybehavior.CopyBehavior 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(AmsConsumerURLViewHolder))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Landroid/view/View;Lcom/liveperson/messaging/model/MessagingChatMessage$MessageType;Lcom/liveperson/infra/messaging_ui/view/adapter/copybehavior/CopyBehavior;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Landroid/view/View;Lcom/liveperson/messaging/model/MessagingChatMessage$MessageType;Lcom/liveperson/infra/messaging_ui/view/adapter/copybehavior/CopyBehavior;)V", __args);
                    return;
                }

                if (id_ctor_Landroid_view_View_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_Lcom_liveperson_infra_messaging_ui_view_adapter_copybehavior_CopyBehavior_ == IntPtr.Zero)
                {
                    id_ctor_Landroid_view_View_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_Lcom_liveperson_infra_messaging_ui_view_adapter_copybehavior_CopyBehavior_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/view/View;Lcom/liveperson/messaging/model/MessagingChatMessage$MessageType;Lcom/liveperson/infra/messaging_ui/view/adapter/copybehavior/CopyBehavior;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_view_View_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_Lcom_liveperson_infra_messaging_ui_view_adapter_copybehavior_CopyBehavior_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Landroid_view_View_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_Lcom_liveperson_infra_messaging_ui_view_adapter_copybehavior_CopyBehavior_, __args);
            } finally {
            }
        }
        public unsafe AmsDownloadableFileViewHolder(global::Android.Views.View p0, global::Com.Liveperson.Messaging.Model.MessagingChatMessage.MessageType p1)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                if (((object)this).GetType() != typeof(AmsDownloadableFileViewHolder))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Landroid/view/View;Lcom/liveperson/messaging/model/MessagingChatMessage$MessageType;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Landroid/view/View;Lcom/liveperson/messaging/model/MessagingChatMessage$MessageType;)V", __args);
                    return;
                }

                if (id_ctor_Landroid_view_View_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_ == IntPtr.Zero)
                {
                    id_ctor_Landroid_view_View_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/view/View;Lcom/liveperson/messaging/model/MessagingChatMessage$MessageType;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_view_View_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Landroid_view_View_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_, __args);
            } finally {
            }
        }
Пример #3
0
 static void n_SetViewAppearanceByState_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageState_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_Lcom_liveperson_infra_model_Message_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2)
 {
     global::Com.Liveperson.Infra.Messaging_ui.View.Adapter.Viewholder.AmsConsumerViewHolder __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Messaging_ui.View.Adapter.Viewholder.AmsConsumerViewHolder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Liveperson.Messaging.Model.MessagingChatMessage.MessageState p0 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.MessagingChatMessage.MessageState> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Liveperson.Messaging.Model.MessagingChatMessage.MessageType  p1 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.MessagingChatMessage.MessageType> (native_p1, JniHandleOwnership.DoNotTransfer);
     global::Com.Liveperson.Infra.Model.Message p2 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Model.Message> (native_p2, JniHandleOwnership.DoNotTransfer);
     __this.SetViewAppearanceByState(p0, p1, p2);
 }
Пример #4
0
        static int n_Resend_Lcom_liveperson_infra_model_Message_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Com.Liveperson.Infra.Messaging_ui.View.Adapter.Viewholder.AmsConsumerViewHolder __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Messaging_ui.View.Adapter.Viewholder.AmsConsumerViewHolder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Liveperson.Infra.Model.Message p0 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Model.Message> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Com.Liveperson.Messaging.Model.MessagingChatMessage.MessageType p1 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.MessagingChatMessage.MessageType> (native_p1, JniHandleOwnership.DoNotTransfer);
            int __ret = __this.Resend(p0, p1);

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

            IntPtr native_p0 = JNIEnv.NewString(p0);
            IntPtr native_p1 = JNIEnv.NewString(p1);
            IntPtr native_p2 = JNIEnv.NewString(p2);

            try {
                JValue *__args = stackalloc JValue [4];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(p3);
                if (((object)this).GetType() != typeof(MessagingSearchedMessage))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/messaging/model/MessagingChatMessage$MessageType;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/messaging/model/MessagingChatMessage$MessageType;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_ == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/messaging/model/MessagingChatMessage$MessageType;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
                JNIEnv.DeleteLocalRef(native_p2);
            }
        }
Пример #6
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 {
     }
 }
 static void n_SetMessageType_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Liveperson.Messaging.Model.MessagingSearchedMessage         __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.MessagingSearchedMessage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Liveperson.Messaging.Model.MessagingChatMessage.MessageType p0     = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.MessagingChatMessage.MessageType> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.MessageType = p0;
 }
Пример #8
0
        public virtual unsafe void SetViewAppearanceByState(global::Com.Liveperson.Messaging.Model.MessagingChatMessage.MessageState p0, global::Com.Liveperson.Messaging.Model.MessagingChatMessage.MessageType p1, global::Com.Liveperson.Infra.Model.Message p2)
        {
            if (id_setViewAppearanceByState_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageState_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_Lcom_liveperson_infra_model_Message_ == IntPtr.Zero)
            {
                id_setViewAppearanceByState_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageState_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_Lcom_liveperson_infra_model_Message_ = JNIEnv.GetMethodID(class_ref, "setViewAppearanceByState", "(Lcom/liveperson/messaging/model/MessagingChatMessage$MessageState;Lcom/liveperson/messaging/model/MessagingChatMessage$MessageType;Lcom/liveperson/infra/model/Message;)V");
            }
            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() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setViewAppearanceByState_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageState_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_Lcom_liveperson_infra_model_Message_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setViewAppearanceByState", "(Lcom/liveperson/messaging/model/MessagingChatMessage$MessageState;Lcom/liveperson/messaging/model/MessagingChatMessage$MessageType;Lcom/liveperson/infra/model/Message;)V"), __args);
                }
            } finally {
            }
        }
Пример #9
0
        protected virtual unsafe int Resend(global::Com.Liveperson.Infra.Model.Message p0, global::Com.Liveperson.Messaging.Model.MessagingChatMessage.MessageType p1)
        {
            if (id_resend_Lcom_liveperson_infra_model_Message_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_ == IntPtr.Zero)
            {
                id_resend_Lcom_liveperson_infra_model_Message_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_ = JNIEnv.GetMethodID(class_ref, "resend", "(Lcom/liveperson/infra/model/Message;Lcom/liveperson/messaging/model/MessagingChatMessage$MessageType;)I");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                int __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallIntMethod(((global::Java.Lang.Object) this).Handle, id_resend_Lcom_liveperson_infra_model_Message_Lcom_liveperson_messaging_model_MessagingChatMessage_MessageType_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualIntMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "resend", "(Lcom/liveperson/infra/model/Message;Lcom/liveperson/messaging/model/MessagingChatMessage$MessageType;)I"), __args);
                }
                return(__ret);
            } finally {
            }
        }