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