public unsafe global::System.Collections.Generic.IList <global::Com.Microsoft.Identity.Common.Internal.Dto.Credential> GetCredentialsFilteredBy(string p0, string p1, global::Com.Microsoft.Identity.Common.Internal.Dto.CredentialType p2, string p3, string p4, string p5, string p6) { if (id_getCredentialsFilteredBy_Ljava_lang_String_Ljava_lang_String_Lcom_microsoft_identity_common_internal_dto_CredentialType_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_ == IntPtr.Zero) { id_getCredentialsFilteredBy_Ljava_lang_String_Ljava_lang_String_Lcom_microsoft_identity_common_internal_dto_CredentialType_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "getCredentialsFilteredBy", "(Ljava/lang/String;Ljava/lang/String;Lcom/microsoft/identity/common/internal/dto/CredentialType;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/util/List;"); } IntPtr native_p0 = JNIEnv.NewString(p0); IntPtr native_p1 = JNIEnv.NewString(p1); IntPtr native_p3 = JNIEnv.NewString(p3); IntPtr native_p4 = JNIEnv.NewString(p4); IntPtr native_p5 = JNIEnv.NewString(p5); IntPtr native_p6 = JNIEnv.NewString(p6); JValue *__args = stackalloc JValue [7]; __args [0] = new JValue(native_p0); __args [1] = new JValue(native_p1); __args [2] = new JValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle); __args [3] = new JValue(native_p3); __args [4] = new JValue(native_p4); __args [5] = new JValue(native_p5); __args [6] = new JValue(native_p6); var __ret = global::Android.Runtime.JavaList <global::Com.Microsoft.Identity.Common.Internal.Dto.Credential> .FromJniHandle(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_getCredentialsFilteredBy_Ljava_lang_String_Ljava_lang_String_Lcom_microsoft_identity_common_internal_dto_CredentialType_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.DeleteLocalRef(native_p0); JNIEnv.DeleteLocalRef(native_p1); JNIEnv.DeleteLocalRef(native_p3); JNIEnv.DeleteLocalRef(native_p4); JNIEnv.DeleteLocalRef(native_p5); JNIEnv.DeleteLocalRef(native_p6); return(__ret); }
public override unsafe global::System.Collections.Generic.IList <global::Com.Microsoft.Identity.Common.Internal.Dto.Credential> GetCredentialsFilteredBy(string homeAccountId, string environment, global::Com.Microsoft.Identity.Common.Internal.Dto.CredentialType credentialType, string clientId, string realm, string target, string authScheme) { const string __id = "getCredentialsFilteredBy.(Ljava/lang/String;Ljava/lang/String;Lcom/microsoft/identity/common/internal/dto/CredentialType;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/util/List;"; IntPtr native_homeAccountId = JNIEnv.NewString(homeAccountId); IntPtr native_environment = JNIEnv.NewString(environment); IntPtr native_clientId = JNIEnv.NewString(clientId); IntPtr native_realm = JNIEnv.NewString(realm); IntPtr native_target = JNIEnv.NewString(target); IntPtr native_authScheme = JNIEnv.NewString(authScheme); try { JniArgumentValue *__args = stackalloc JniArgumentValue [7]; __args [0] = new JniArgumentValue(native_homeAccountId); __args [1] = new JniArgumentValue(native_environment); __args [2] = new JniArgumentValue((credentialType == null) ? IntPtr.Zero : ((global::Java.Lang.Object)credentialType).Handle); __args [3] = new JniArgumentValue(native_clientId); __args [4] = new JniArgumentValue(native_realm); __args [5] = new JniArgumentValue(native_target); __args [6] = new JniArgumentValue(native_authScheme); var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args); return(global::Android.Runtime.JavaList <global::Com.Microsoft.Identity.Common.Internal.Dto.Credential> .FromJniHandle(__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { JNIEnv.DeleteLocalRef(native_homeAccountId); JNIEnv.DeleteLocalRef(native_environment); JNIEnv.DeleteLocalRef(native_clientId); JNIEnv.DeleteLocalRef(native_realm); JNIEnv.DeleteLocalRef(native_target); JNIEnv.DeleteLocalRef(native_authScheme); global::System.GC.KeepAlive(credentialType); } }