private void logOut() { try { marketobj.logOut(command.getClient()); } catch (RemoteException e) { contr.remoteExceptionHandler(e); } }
private void removeWish() { try { marketobj.removeWish(command.getItemName(), command.getPrice(), command.getClient()); contr.updateLog(client.getName() + " removed wish for " + command.getItemName()); getWishes(); } catch (RemoteException e) { contr.remoteExceptionHandler(e); } }
private void removeSell() { try { marketobj.removeSell( command.getItemName(), command.getItemDescr(), command.getPrice(), command.getClient()); contr.updateLog( client.getName() + " removed " + command.getItemName() + " that was listed as for sale"); getForSale(); } catch (RemoteException e) { contr.remoteExceptionHandler(e); } }
public MarketWorker(MarketPlace marketobj, MarketCommand command, GuiController contr) { this.client = command.getClient(); this.marketobj = marketobj; this.command = command; this.contr = contr; }