xxxxxxxxxx
+------------------------+ +---------------------+
| Client | | API Consumer |
+------------------------+ +---------------------+
| | | |
| |-------->| fetchInfo(apiAdapter, callback) |
| | | |
+------------------------+ +----------+----------+
|
| uses
V
+------------------------+
| API Adapter |
+------------------------+
| |
| |
+------------+-----------+
|
| implements
+--------------+--------------+
| |
+-----------v----------+ +-----------v----------+
| WeatherAPIAdapter | | NewsAPIAdapter |
+-----------------------+ +---------------------+
| | | |
| weatherAPIAdapter(callback) | newsAPIAdapter(callback)|
+-----------------------+ +---------------------+