public PlaceBlockerResponse placeBlocker(Direction direction, ShopResponse shop) { PlaceBlockerParameters blockerParameters = new PlaceBlockerParameters(); blockerParameters.setDirection(direction); blockerParameters.setShopId(shop.getShopId()); blockerParameters.setShopOwnerId(participantId); return httpGameClient.placeBlocker(blockerParameters); }
public BuyResponse buyStock(int quantity, ShopResponse shop, Stock.StockType stockType) { BuyStockParameters buyStockParam = new BuyStockParameters(); buyStockParam.setShopOwnerId(participantId); buyStockParam.setQuantity(quantity); buyStockParam.setShopId(shop.getShopId()); buyStockParam.setStockType(stockType); return httpGameClient.buyStock(buyStockParam); }
public PlaceAdvertResponse placeAdvert( Direction direction, ShopResponse shop, Stock.StockType stockType) { PlaceAdvertParameters advertParameters = new PlaceAdvertParameters(); advertParameters.setShopOwnerId(participantId); advertParameters.setStockType(stockType); advertParameters.setShopId(shop.getShopId()); advertParameters.setDirection(direction); return httpGameClient.placeAdvert(advertParameters); }