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.
90 lines
1.7 KiB
90 lines
1.7 KiB
using System; |
|
using System.Collections.Generic; |
|
|
|
public class WeatherData |
|
{ |
|
public string status; |
|
public string count; |
|
public string info; |
|
public string infocode; |
|
public List<LiveInfo> lives; |
|
} |
|
|
|
public class LiveInfo |
|
{ |
|
public string provice; |
|
public string city; |
|
public string adcode; |
|
public string weather; |
|
public string temperature; |
|
public string winddirection; |
|
public string windpower; |
|
public string humidity; |
|
public string reporttime; |
|
} |
|
|
|
public class CityInfo |
|
{ |
|
public string city; |
|
public string citykey; |
|
public string parent; |
|
public string updateTime; |
|
} |
|
|
|
public class Data |
|
{ |
|
public string shidu; |
|
public float pm25; |
|
public float pm10; |
|
public string quality; |
|
public string wendu; |
|
public string gaomao; |
|
public List<Forecast> forecast; |
|
public Yesterday yesterday; |
|
} |
|
|
|
public class Forecast |
|
{ |
|
public string date; |
|
public string high; |
|
public string low; |
|
public string ymd; |
|
public string week; |
|
public string sunrise; |
|
public int aqi; |
|
public string fx; |
|
public string fl; |
|
public string type; |
|
public string notice; |
|
} |
|
|
|
public class Yesterday |
|
{ |
|
public string date; |
|
public string high; |
|
public string low; |
|
public string ymd; |
|
public string week; |
|
public string sunrise; |
|
public string sunset; |
|
public int aqi; |
|
public string fx; |
|
public string fl; |
|
public string type; |
|
public string notice; |
|
} |
|
|
|
public class City |
|
{ |
|
public string CityName; |
|
public string CityCode; |
|
} |
|
public class ProvinceData |
|
{ |
|
public string province; |
|
public List<City> City; |
|
} |
|
public class CountryCodeData |
|
{ |
|
public List<ProvinceData> CountryCode; |
|
} |