public async UniTask <AsyncResponseData <CashResp> > GetCashAsync(GetCashReq request) { var resp = await Client.SendRequestAsync <GetCashReq, CashResp>(DatabaseRequestTypes.RequestGetCash, request); if (!resp.IsSuccess) { Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(GetCashAsync)} status: {resp.ResponseCode}"); } return(resp); }
public async UniTask <CashResp> GetCashAsync(GetCashReq request) { var result = await Client.SendRequestAsync <GetCashReq, CashResp>(DatabaseRequestTypes.RequestGetCash, request); if (result.ResponseCode != AckResponseCode.Success) { return(new CashResp()); } return(result.Response); }