NadekoBot/NadekoBot.Modules.Searches/Common/WeatherModels.cs

67 lines
1.7 KiB
C#
Raw Normal View History

2017-08-05 08:12:20 +00:00
using Newtonsoft.Json;
using System.Collections.Generic;
2017-07-17 19:42:36 +00:00
namespace NadekoBot.Modules.Searches.Common
{
public class Coord
{
public double Lon { get; set; }
public double Lat { get; set; }
}
public class Weather
{
public int Id { get; set; }
public string Main { get; set; }
public string Description { get; set; }
public string Icon { get; set; }
}
public class Main
{
public double Temp { get; set; }
public float Pressure { get; set; }
public float Humidity { get; set; }
2017-08-05 08:12:20 +00:00
[JsonProperty("temp_min")]
2017-07-17 19:42:36 +00:00
public double TempMin { get; set; }
2017-08-05 08:12:20 +00:00
[JsonProperty("temp_max")]
2017-07-17 19:42:36 +00:00
public double TempMax { get; set; }
}
public class Wind
{
public double Speed { get; set; }
public double Deg { get; set; }
}
public class Clouds
{
public int All { get; set; }
}
public class Sys
{
public int Type { get; set; }
public int Id { get; set; }
public double Message { get; set; }
public string Country { get; set; }
public double Sunrise { get; set; }
public double Sunset { get; set; }
}
public class WeatherData
{
public Coord Coord { get; set; }
public List<Weather> Weather { get; set; }
public Main Main { get; set; }
public int Visibility { get; set; }
public Wind Wind { get; set; }
public Clouds Clouds { get; set; }
public int Dt { get; set; }
public Sys Sys { get; set; }
public int Id { get; set; }
public string Name { get; set; }
public int Cod { get; set; }
}
}