Ejemplo n.º 1
0
        public virtual unsafe void SetInfo(global::Com.Liveperson.Api.Response.Model.DeliveryStatusUpdateInfo p0)
        {
            if (id_setInfo_Lcom_liveperson_api_response_model_DeliveryStatusUpdateInfo_ == IntPtr.Zero)
            {
                id_setInfo_Lcom_liveperson_api_response_model_DeliveryStatusUpdateInfo_ = JNIEnv.GetMethodID(class_ref, "setInfo", "(Lcom/liveperson/api/response/model/DeliveryStatusUpdateInfo;)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_setInfo_Lcom_liveperson_api_response_model_DeliveryStatusUpdateInfo_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setInfo", "(Lcom/liveperson/api/response/model/DeliveryStatusUpdateInfo;)V"), __args);
                }
            } finally {
            }
        }
 static IntPtr n_GetMetadata(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Api.Response.Model.DeliveryStatusUpdateInfo __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Api.Response.Model.DeliveryStatusUpdateInfo> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Metadata));
 }
Ejemplo n.º 3
0
        public unsafe DeliveryStatusUpdateCommand(string p0, string p1, string p2, int p3, global::Com.Liveperson.Api.Response.Types.DeliveryStatus p4, global::Com.Liveperson.Api.Response.Model.DeliveryStatusUpdateInfo p5)
            : 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 [6];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(p3);
                __args [4] = new JValue(p4);
                __args [5] = new JValue(p5);
                if (((object)this).GetType() != typeof(DeliveryStatusUpdateCommand))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILcom/liveperson/api/response/types/DeliveryStatus;Lcom/liveperson/api/response/model/DeliveryStatusUpdateInfo;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILcom/liveperson/api/response/types/DeliveryStatus;Lcom/liveperson/api/response/model/DeliveryStatusUpdateInfo;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_ILcom_liveperson_api_response_types_DeliveryStatus_Lcom_liveperson_api_response_model_DeliveryStatusUpdateInfo_ == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_ILcom_liveperson_api_response_types_DeliveryStatus_Lcom_liveperson_api_response_model_DeliveryStatusUpdateInfo_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILcom/liveperson/api/response/types/DeliveryStatus;Lcom/liveperson/api/response/model/DeliveryStatusUpdateInfo;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_ILcom_liveperson_api_response_types_DeliveryStatus_Lcom_liveperson_api_response_model_DeliveryStatusUpdateInfo_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_ILcom_liveperson_api_response_types_DeliveryStatus_Lcom_liveperson_api_response_model_DeliveryStatusUpdateInfo_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
                JNIEnv.DeleteLocalRef(native_p2);
            }
        }
        public unsafe PublishEvent(string p0, global::Com.Liveperson.Api.Request.PublishEvent.Type p1, string p2, int[] p3, global::Com.Liveperson.Api.Response.Model.DeliveryStatusUpdateInfo p4)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p0 = JNIEnv.NewString(p0);
            IntPtr native_p2 = JNIEnv.NewString(p2);
            IntPtr native_p3 = JNIEnv.NewArray(p3);

            try {
                JValue *__args = stackalloc JValue [5];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(native_p3);
                __args [4] = new JValue(p4);
                if (((object)this).GetType() != typeof(PublishEvent))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/String;Lcom/liveperson/api/request/PublishEvent$Type;Ljava/lang/String;[ILcom/liveperson/api/response/model/DeliveryStatusUpdateInfo;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Lcom/liveperson/api/request/PublishEvent$Type;Ljava/lang/String;[ILcom/liveperson/api/response/model/DeliveryStatusUpdateInfo;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Lcom_liveperson_api_request_PublishEvent_Type_Ljava_lang_String_arrayILcom_liveperson_api_response_model_DeliveryStatusUpdateInfo_ == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Lcom_liveperson_api_request_PublishEvent_Type_Ljava_lang_String_arrayILcom_liveperson_api_response_model_DeliveryStatusUpdateInfo_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Lcom/liveperson/api/request/PublishEvent$Type;Ljava/lang/String;[ILcom/liveperson/api/response/model/DeliveryStatusUpdateInfo;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Lcom_liveperson_api_request_PublishEvent_Type_Ljava_lang_String_arrayILcom_liveperson_api_response_model_DeliveryStatusUpdateInfo_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Lcom_liveperson_api_request_PublishEvent_Type_Ljava_lang_String_arrayILcom_liveperson_api_response_model_DeliveryStatusUpdateInfo_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p2);
                if (p3 != null)
                {
                    JNIEnv.CopyArray(native_p3, p3);
                    JNIEnv.DeleteLocalRef(native_p3);
                }
            }
        }
Ejemplo n.º 5
0
 static void n_SetInfo_Lcom_liveperson_api_response_model_DeliveryStatusUpdateInfo_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Liveperson.Messaging.Network.Socket.Requests.DeliveryStatusUpdateRequest __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Network.Socket.Requests.DeliveryStatusUpdateRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Liveperson.Api.Response.Model.DeliveryStatusUpdateInfo p0 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Api.Response.Model.DeliveryStatusUpdateInfo> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.SetInfo(p0);
 }