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:

  1. Return to Visual Studio.
  2. Right-click the Models folder and select the “Add, Class” option from the menu.
  3. Name the new class OpenWeather.
  4. Add the following classes:

Get hands-on with 1200+ tech skills courses.