Closed ShayHav closed 2 years ago
in order to implement notification, a personal web-socket will be initialized when user enters market, and will be closed when he leaves market. Notification manager should hold a Map<User,ws>
think how to implement it from gui side, + how to implement delayed notifications
Expect to get Observer Object in the following functions
AppointNewShopOwner(int key,String targetUser, String userName, Observer observer)
AppointNewShopManager(int key,String targetUser, String userName, Observer observer)
DismissalOwnerByOwner(String usernames,String targetUser,int shop, Observer observer)
StartMarket(PaymentService payment, SupplyService supply, String userName, String password,Observer observer)
shay wrote tests + implementation up to gui layer
implement real time and delayed notification to the store's owner for this scenarios: