Issue goes here
An off the shelf component offers compelling functionality, news_updates, that I would like to reuse, but its view of the world is not compatible with the philosophy and architecture of the system, covid19-api, currently being developed.
Proposed Changes
change 1 Added Adapter structural pattern to news_updates
change 2 Implemented Adapter pattern by adding abstract method, adapter class and adaptee class in news_updates
Addtional Info
any additional information or context
Implemented Adapter design pattern to the news_updates, while adding a wrapper class, adaptee class and abstract method in news_updates. Designed a wrapper class, NewsAdapter, that can impedance match the adaptee, NewsUpdatesData, to the client. The adapter/wrapper class has a instance of the adaptee class. The adapter/wrapper class maps the client interface to the adaptee interface. The client uses news_updates, is coupled to the new interface.
Related Issue:
Proposed Changes
Addtional Info
any additional information or context Implemented Adapter design pattern to the news_updates, while adding a wrapper class, adaptee class and abstract method in news_updates. Designed a wrapper class, NewsAdapter, that can impedance match the adaptee, NewsUpdatesData, to the client. The adapter/wrapper class has a instance of the adaptee class. The adapter/wrapper class maps the client interface to the adaptee interface. The client uses news_updates, is coupled to the new interface.
Checklist
[x] Tests
[x] Translations
[x] Documentation
Screenshots