public async UniTask <AsyncResponseData <CashResp> > ChangeCashAsync(ChangeCashReq request)
        {
            var resp = await Client.SendRequestAsync <ChangeCashReq, CashResp>(DatabaseRequestTypes.RequestChangeCash, request);

            if (!resp.IsSuccess)
            {
                Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(ChangeCashAsync)} status: {resp.ResponseCode}");
            }
            return(resp);
        }
Ejemplo n.º 2
0
        public async UniTask <CashResp> ChangeCashAsync(ChangeCashReq request)
        {
            var result = await Client.SendRequestAsync <ChangeCashReq, CashResp>(DatabaseRequestTypes.RequestChangeCash, request);

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