static IntPtr n_SetContentType_Lcom_liveperson_api_response_model_ContentType_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Liveperson.Messaging.Network.Socket.Requests.SendMessageRequest __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Network.Socket.Requests.SendMessageRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Liveperson.Api.Response.Model.ContentType p0 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Api.Response.Model.ContentType> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.SetContentType(p0));

            return(__ret);
        }
        public static unsafe global::Com.Liveperson.Api.Response.Model.ContentType ValueOf(string p0)
        {
            if (id_valueOf_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_valueOf_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "valueOf", "(Ljava/lang/String;)Lcom/liveperson/api/response/model/ContentType;");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                global::Com.Liveperson.Api.Response.Model.ContentType __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Api.Response.Model.ContentType> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
        public virtual unsafe global::Com.Liveperson.Messaging.Network.Socket.Requests.SendMessageRequest SetContentType(global::Com.Liveperson.Api.Response.Model.ContentType p0)
        {
            if (id_setContentType_Lcom_liveperson_api_response_model_ContentType_ == IntPtr.Zero)
            {
                id_setContentType_Lcom_liveperson_api_response_model_ContentType_ = JNIEnv.GetMethodID(class_ref, "setContentType", "(Lcom/liveperson/api/response/model/ContentType;)Lcom/liveperson/messaging/network/socket/requests/SendMessageRequest;");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                global::Com.Liveperson.Messaging.Network.Socket.Requests.SendMessageRequest __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Network.Socket.Requests.SendMessageRequest> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_setContentType_Lcom_liveperson_api_response_model_ContentType_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Network.Socket.Requests.SendMessageRequest> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setContentType", "(Lcom/liveperson/api/response/model/ContentType;)Lcom/liveperson/messaging/network/socket/requests/SendMessageRequest;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
        public unsafe SendMessageRequest(global::Com.Liveperson.Messaging.Messaging p0, string p1, string p2, string p3, string p4, string p5, global::Com.Liveperson.Api.Response.Model.ContentType p6)
            : 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);
            IntPtr native_p4 = JNIEnv.NewString(p4);
            IntPtr native_p5 = JNIEnv.NewString(p5);

            try {
                JValue *__args = stackalloc JValue [7];
                __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(native_p4);
                __args [5] = new JValue(native_p5);
                __args [6] = new JValue(p6);
                if (((object)this).GetType() != typeof(SendMessageRequest))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/liveperson/messaging/Messaging;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/api/response/model/ContentType;)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;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/api/response/model/ContentType;)V", __args);
                    return;
                }

                if (id_ctor_Lcom_liveperson_messaging_Messaging_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_model_ContentType_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_liveperson_messaging_Messaging_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_model_ContentType_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/messaging/Messaging;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/api/response/model/ContentType;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_messaging_Messaging_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_model_ContentType_, __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_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_model_ContentType_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
                JNIEnv.DeleteLocalRef(native_p2);
                JNIEnv.DeleteLocalRef(native_p3);
                JNIEnv.DeleteLocalRef(native_p4);
                JNIEnv.DeleteLocalRef(native_p5);
            }
        }