Esempio n. 1
0
        public async UniTask <FindUsernameResp> FindUsernameAsync(FindUsernameReq request)
        {
            var result = await Client.SendRequestAsync <FindUsernameReq, FindUsernameResp>(DatabaseRequestTypes.RequestFindUsername, request);

            if (result.ResponseCode != AckResponseCode.Success)
            {
                return(new FindUsernameResp());
            }
            return(result.Response);
        }
        public async UniTask <AsyncResponseData <FindUsernameResp> > FindUsernameAsync(FindUsernameReq request)
        {
            var resp = await Client.SendRequestAsync <FindUsernameReq, FindUsernameResp>(DatabaseRequestTypes.RequestFindUsername, request);

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