Ejemplo n.º 1
0
        public async UniTask <SocialCharactersResp> FindCharactersAsync(FindCharacterNameReq request)
        {
            var result = await Client.SendRequestAsync <FindCharacterNameReq, SocialCharactersResp>(DatabaseRequestTypes.RequestFindCharacters, request);

            if (result.ResponseCode != AckResponseCode.Success)
            {
                return(new SocialCharactersResp());
            }
            return(result.Response);
        }
        public async UniTask <AsyncResponseData <SocialCharactersResp> > FindCharactersAsync(FindCharacterNameReq request)
        {
            var resp = await Client.SendRequestAsync <FindCharacterNameReq, SocialCharactersResp>(DatabaseRequestTypes.RequestFindCharacters, request);

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