static IntPtr n_GetAssignedAgentId_Lcom_liveperson_api_response_model_Participants_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Liveperson.Messaging.Model.ConversationData __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.ConversationData> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Liveperson.Api.Response.Model.Participants p0 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Api.Response.Model.Participants> (native_p0, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.NewString(__this.GetAssignedAgentId(p0)); return(__ret); }
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); } }
protected virtual unsafe string GetAssignedAgentId(global::Com.Liveperson.Api.Response.Model.Participants p0) { if (id_getAssignedAgentId_Lcom_liveperson_api_response_model_Participants_ == IntPtr.Zero) { id_getAssignedAgentId_Lcom_liveperson_api_response_model_Participants_ = JNIEnv.GetMethodID(class_ref, "getAssignedAgentId", "(Lcom/liveperson/api/response/model/Participants;)Ljava/lang/String;"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); string __ret; if (((object)this).GetType() == ThresholdType) { __ret = JNIEnv.GetString(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_getAssignedAgentId_Lcom_liveperson_api_response_model_Participants_, __args), JniHandleOwnership.TransferLocalRef); } else { __ret = JNIEnv.GetString(JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getAssignedAgentId", "(Lcom/liveperson/api/response/model/Participants;)Ljava/lang/String;"), __args), JniHandleOwnership.TransferLocalRef); } return(__ret); } finally { } }