Exemple #1
0
        public unsafe TokenResult(global::Com.Microsoft.Identity.Common.Internal.Providers.Oauth2.TokenErrorResponse errorResponse) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lcom/microsoft/identity/common/internal/providers/oauth2/TokenErrorResponse;)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((errorResponse == null) ? IntPtr.Zero : ((global::Java.Lang.Object)errorResponse).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
                global::System.GC.KeepAlive(errorResponse);
            }
        }
		public static unsafe global::Com.Microsoft.Identity.Common.Exception.ServiceException GetExceptionFromTokenErrorResponse (global::Com.Microsoft.Identity.Common.Internal.Providers.Oauth2.TokenErrorResponse errorResponse)
		{
			const string __id = "getExceptionFromTokenErrorResponse.(Lcom/microsoft/identity/common/internal/providers/oauth2/TokenErrorResponse;)Lcom/microsoft/identity/common/exception/ServiceException;";
			try {
				JniArgumentValue* __args = stackalloc JniArgumentValue [1];
				__args [0] = new JniArgumentValue ((errorResponse == null) ? IntPtr.Zero : ((global::Java.Lang.Object) errorResponse).Handle);
				var __rm = _members.StaticMethods.InvokeObjectMethod (__id, __args);
				return global::Java.Lang.Object.GetObject<global::Com.Microsoft.Identity.Common.Exception.ServiceException> (__rm.Handle, JniHandleOwnership.TransferLocalRef);
			} finally {
				global::System.GC.KeepAlive (errorResponse);
			}
		}