Adding a Forecast Class
Learn how to fetch data from OpenWeather One Call API and display it on the page.
We need to add a Forecast
class to capture the results from the OpenWeather One Call API. We will do this by following these steps:
- Return to Visual Studio.
- Right-click the
Models
folder and select the “Add, Class” option from the menu. - Name the new class
OpenWeather
. - Add the following classes:
Get hands-on with 1400+ tech skills courses.