Application of Adapter Pattern between covid_api_v1_integrator.py and covid_api_v2_integrator.py.
Related Issue
Both the class CovidAPIv1 and CovidAPIv2Integrator have similar methods but are not able to work together due to incompatible interfaces, instead define new methods.
Proposed Changes
target interface file i.e api_v2_interface.py for the class CovidAPIv2Integrator that defines the method that the class adapts from the class CovidAPIv1
Created target interface i.e class APIv1 for the class CovidAPIv1.
CovidAPIv2Adapter, the Adapter class is executed in the file covid_api_v2_Adapter.py
Application of Adapter Pattern between covid_api_v1_integrator.py and covid_api_v2_integrator.py.
Related Issue
Proposed Changes
Checklist