public async UniTask <AsyncResponseData <GetUserIdByCharacterNameResp> > GetUserIdByCharacterNameAsync(GetUserIdByCharacterNameReq request)
        {
            var resp = await Client.SendRequestAsync <GetUserIdByCharacterNameReq, GetUserIdByCharacterNameResp>(DatabaseRequestTypes.RequestGetUserIdByCharacterName, request);

            if (!resp.IsSuccess)
            {
                Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(GetUserIdByCharacterNameAsync)} status: {resp.ResponseCode}");
            }
            return(resp);
        }
Пример #2
0
        public async UniTask <GetUserIdByCharacterNameResp> GetUserIdByCharacterNameAsync(GetUserIdByCharacterNameReq request)
        {
            var result = await Client.SendRequestAsync <GetUserIdByCharacterNameReq, GetUserIdByCharacterNameResp>(DatabaseRequestTypes.RequestGetUserIdByCharacterName, request);

            if (result.ResponseCode != AckResponseCode.Success)
            {
                return(new GetUserIdByCharacterNameResp());
            }
            return(result.Response);
        }