ShayHav / Workshop

0 stars 0 forks source link

Notification #16

Closed ShayHav closed 2 years ago

ShayHav commented 2 years ago

implement real time and delayed notification to the store's owner for this scenarios:

  1. after success checkout.
  2. after closing or re-opening the store
  3. after dismissal
shaharlankry commented 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>

shaharlankry commented 2 years ago

think how to implement it from gui side, + how to implement delayed notifications

nitay658 commented 2 years ago
  1. | 3. is implemented. need to insure the Sockets the class is getting.
    • need to decided how to implement
nitay658 commented 2 years ago

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)

shaharlankry commented 2 years ago

shay wrote tests + implementation up to gui layer