You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
619 B
27 lines
619 B
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WeatherApp
|
|
{
|
|
class WeatherResponse
|
|
{
|
|
[JsonProperty("weather")]
|
|
public List<Weather> Weather { get; set; }
|
|
}
|
|
|
|
class Weather
|
|
{
|
|
[JsonProperty("id")]
|
|
public int Id { get; set; }
|
|
[JsonProperty("main")]
|
|
public string Main { get ; set; }
|
|
[JsonProperty("description")]
|
|
public string Description { get ; set; }
|
|
[JsonProperty("icon")]
|
|
public string Icon { get; set; }
|
|
}
|
|
}
|
|
|