Script to automatically book a vaccine slot on Doctolib in the next seven days.
GNU General Public License v3.0
549
stars
142
forks
source link
Added singleton pattern to AvailabilitiesPage class which will only Allow one object instance at a time for Patients first and second booking slot #253
This singleton Pattern was applied to the AvailabiltiesPage class object of docotoshotgun. Its primary purpose is to only allow one instance of this object type that is accessed globally by all patient for first and second shot booking instead of having two objects created for this purpose. One AvailabilitiesPage class object can handle both scenarios and thus it can act as a singleton object preventing the creation of extra unnecessary objects for this purpose.
This singleton Pattern was applied to the AvailabiltiesPage class object of docotoshotgun. Its primary purpose is to only allow one instance of this object type that is accessed globally by all patient for first and second shot booking instead of having two objects created for this purpose. One AvailabilitiesPage class object can handle both scenarios and thus it can act as a singleton object preventing the creation of extra unnecessary objects for this purpose.