rbignon / doctoshotgun

Script to automatically book a vaccine slot on Doctolib in the next seven days.
GNU General Public License v3.0
549 stars 143 forks source link

Added observer design pattern for data analysis #278

Closed dhaval2899 closed 3 years ago

dhaval2899 commented 3 years ago

The implementation consists of two interfaces IVaccinationData (observer interface) and IVaccinationBooking (observable interface) which are both implemented by the concrete classes VaccinationData (observer for the observable class) and VaccinationBooking (observable class) respectively. Here the observer class VaccinationData will be notified of the data by the observable class VaccinationBooking at the time of a successful vaccination booking for a user. Data provided by the observable to the observer can then be stored in a database for further analysis.