Exemplo n.º 1
0
        public virtual unsafe void Add(string[] p0, global::Com.Liveperson.Api.Response.Model.Participants.ParticipantRole p1)
        {
            if (id_add_arrayLjava_lang_String_Lcom_liveperson_api_response_model_Participants_ParticipantRole_ == IntPtr.Zero)
            {
                id_add_arrayLjava_lang_String_Lcom_liveperson_api_response_model_Participants_ParticipantRole_ = JNIEnv.GetMethodID(class_ref, "add", "([Ljava/lang/String;Lcom/liveperson/api/response/model/Participants$ParticipantRole;)V");
            }
            IntPtr native_p0 = JNIEnv.NewArray(p0);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(p1);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_add_arrayLjava_lang_String_Lcom_liveperson_api_response_model_Participants_ParticipantRole_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "add", "([Ljava/lang/String;Lcom/liveperson/api/response/model/Participants$ParticipantRole;)V"), __args);
                }
            } finally {
                if (p0 != null)
                {
                    JNIEnv.CopyArray(native_p0, p0);
                    JNIEnv.DeleteLocalRef(native_p0);
                }
            }
        }
Exemplo n.º 2
0
 static void n_Add_arrayLjava_lang_String_Lcom_liveperson_api_response_model_Participants_ParticipantRole_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Com.Liveperson.Api.Response.Model.Participants __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Api.Response.Model.Participants> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     string[] p0 = (string[])JNIEnv.GetArray(native_p0, JniHandleOwnership.DoNotTransfer, typeof(string));
     global::Com.Liveperson.Api.Response.Model.Participants.ParticipantRole p1 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Api.Response.Model.Participants.ParticipantRole> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.Add(p0, p1);
     if (p0 != null)
     {
         JNIEnv.CopyArray(p0, native_p0);
     }
 }
Exemplo n.º 3
0
            public static unsafe global::Com.Liveperson.Api.Response.Model.Participants.ParticipantRole 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/Participants$ParticipantRole;");
                }
                IntPtr native_p0 = JNIEnv.NewString(p0);

                try {
                    JValue *__args = stackalloc JValue [1];
                    __args [0] = new JValue(native_p0);
                    global::Com.Liveperson.Api.Response.Model.Participants.ParticipantRole __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Api.Response.Model.Participants.ParticipantRole> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                    return(__ret);
                } finally {
                    JNIEnv.DeleteLocalRef(native_p0);
                }
            }