public unsafe void SaveAccount(global::Com.Microsoft.Identity.Common.Internal.Dto.AccountRecord p0)
        {
            if (id_saveAccount_Lcom_microsoft_identity_common_internal_dto_AccountRecord_ == IntPtr.Zero)
            {
                id_saveAccount_Lcom_microsoft_identity_common_internal_dto_AccountRecord_ = JNIEnv.GetMethodID(class_ref, "saveAccount", "(Lcom/microsoft/identity/common/internal/dto/AccountRecord;)V");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_saveAccount_Lcom_microsoft_identity_common_internal_dto_AccountRecord_, __args);
        }
示例#2
0
        public override unsafe void SaveAccount(global::Com.Microsoft.Identity.Common.Internal.Dto.AccountRecord account)
        {
            const string __id = "saveAccount.(Lcom/microsoft/identity/common/internal/dto/AccountRecord;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((account == null) ? IntPtr.Zero : ((global::Java.Lang.Object)account).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
                global::System.GC.KeepAlive(account);
            }
        }
        public virtual unsafe bool Add(global::Com.Microsoft.Identity.Common.Internal.Dto.AccountRecord accountRecord)
        {
            const string __id = "add.(Lcom/microsoft/identity/common/internal/dto/AccountRecord;)Z";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((accountRecord == null) ? IntPtr.Zero : ((global::Java.Lang.Object)accountRecord).Handle);
                var __rm = _members.InstanceMethods.InvokeVirtualBooleanMethod(__id, this, __args);
                return(__rm);
            } finally {
                global::System.GC.KeepAlive(accountRecord);
            }
        }
        public virtual unsafe void Add(int index, global::Com.Microsoft.Identity.Common.Internal.Dto.AccountRecord element)
        {
            const string __id = "add.(ILcom/microsoft/identity/common/internal/dto/AccountRecord;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue(index);
                __args [1] = new JniArgumentValue((element == null) ? IntPtr.Zero : ((global::Java.Lang.Object)element).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
                global::System.GC.KeepAlive(element);
            }
        }
示例#5
0
        public virtual unsafe string GenerateCacheValue(global::Com.Microsoft.Identity.Common.Internal.Dto.AccountRecord account)
        {
            const string __id = "generateCacheValue.(Lcom/microsoft/identity/common/internal/dto/AccountRecord;)Ljava/lang/String;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((account == null) ? IntPtr.Zero : ((global::Java.Lang.Object)account).Handle);
                var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                return(JNIEnv.GetString(__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
                global::System.GC.KeepAlive(account);
            }
        }
        public unsafe string GenerateCacheValue(global::Com.Microsoft.Identity.Common.Internal.Dto.AccountRecord p0)
        {
            if (id_generateCacheValue_Lcom_microsoft_identity_common_internal_dto_AccountRecord_ == IntPtr.Zero)
            {
                id_generateCacheValue_Lcom_microsoft_identity_common_internal_dto_AccountRecord_ = JNIEnv.GetMethodID(class_ref, "generateCacheValue", "(Lcom/microsoft/identity/common/internal/dto/AccountRecord;)Ljava/lang/String;");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            var __ret = JNIEnv.GetString(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_generateCacheValue_Lcom_microsoft_identity_common_internal_dto_AccountRecord_, __args), JniHandleOwnership.TransferLocalRef);

            return(__ret);
        }
        public static unsafe global::Com.Microsoft.Identity.Common.Internal.Commands.Parameters.RemoveAccountCommandParameters CreateRemoveAccountCommandParameters(global::Com.Microsoft.Identity.Client.PublicClientApplicationConfiguration configuration, global::Com.Microsoft.Identity.Common.Internal.Providers.Oauth2.OAuth2TokenCache tokenCache, global::Com.Microsoft.Identity.Common.Internal.Dto.AccountRecord account)
        {
            const string __id = "createRemoveAccountCommandParameters.(Lcom/microsoft/identity/client/PublicClientApplicationConfiguration;Lcom/microsoft/identity/common/internal/providers/oauth2/OAuth2TokenCache;Lcom/microsoft/identity/common/internal/dto/AccountRecord;)Lcom/microsoft/identity/common/internal/commands/parameters/RemoveAccountCommandParameters;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((configuration == null) ? IntPtr.Zero : ((global::Java.Lang.Object)configuration).Handle);
                __args [1] = new JniArgumentValue((tokenCache == null) ? IntPtr.Zero : ((global::Java.Lang.Object)tokenCache).Handle);
                __args [2] = new JniArgumentValue((account == null) ? IntPtr.Zero : ((global::Java.Lang.Object)account).Handle);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(global::Java.Lang.Object.GetObject <global::Com.Microsoft.Identity.Common.Internal.Commands.Parameters.RemoveAccountCommandParameters> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
                global::System.GC.KeepAlive(configuration);
                global::System.GC.KeepAlive(tokenCache);
                global::System.GC.KeepAlive(account);
            }
        }
        public virtual unsafe global::Com.Microsoft.Identity.Common.Internal.Dto.AccountRecord Set(int index, global::Com.Microsoft.Identity.Common.Internal.Dto.AccountRecord element)
        {
            const string __id = "set.(ILcom/microsoft/identity/common/internal/dto/AccountRecord;)Lcom/microsoft/identity/common/internal/dto/AccountRecord;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue(index);
                __args [1] = new JniArgumentValue((element == null) ? IntPtr.Zero : ((global::Java.Lang.Object)element).Handle);
                var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Com.Microsoft.Identity.Common.Internal.Dto.AccountRecord> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
                global::System.GC.KeepAlive(element);
            }
        }
            public virtual unsafe global::Com.Microsoft.Identity.Common.Internal.Cache.CacheRecord.CacheRecordBuilder MAccount(global::Com.Microsoft.Identity.Common.Internal.Dto.AccountRecord account)
            {
                const string __id = "mAccount.(Lcom/microsoft/identity/common/internal/dto/AccountRecord;)Lcom/microsoft/identity/common/internal/cache/CacheRecord$CacheRecordBuilder;";

                try {
                    JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                    __args [0] = new JniArgumentValue((account == null) ? IntPtr.Zero : ((global::Java.Lang.Object)account).Handle);
                    var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                    return(global::Java.Lang.Object.GetObject <global::Com.Microsoft.Identity.Common.Internal.Cache.CacheRecord.CacheRecordBuilder> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
                } finally {
                    global::System.GC.KeepAlive(account);
                }
            }