Exemple #1
0
        public async UniTask <ValidateAccessTokenResp> ValidateAccessTokenAsync(ValidateAccessTokenReq request)
        {
            var result = await Client.SendRequestAsync <ValidateAccessTokenReq, ValidateAccessTokenResp>(DatabaseRequestTypes.RequestValidateAccessToken, request);

            if (result.ResponseCode != AckResponseCode.Success)
            {
                return(new ValidateAccessTokenResp());
            }
            return(result.Response);
        }
        public async UniTask <AsyncResponseData <ValidateAccessTokenResp> > ValidateAccessTokenAsync(ValidateAccessTokenReq request)
        {
            var resp = await Client.SendRequestAsync <ValidateAccessTokenReq, ValidateAccessTokenResp>(DatabaseRequestTypes.RequestValidateAccessToken, request);

            if (!resp.IsSuccess)
            {
                Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(ValidateAccessTokenAsync)} status: {resp.ResponseCode}");
            }
            return(resp);
        }