Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. class WeatherNow
  2. {
  3. // Coord class to handle coordinates as a single object.
  4. public class Coord
  5. {
  6. public double lon { get; set; }
  7. public double lat { get; set; }
  8. }
  9.  
  10.  
  11. public Coord coord { get; set; }
  12.  
  13.  
  14. public class Weather
  15. {
  16. public int id { get; set; }
  17. public string main { get; set; }
  18. public string description { get; set; }
  19. public string icon { get; set; }
  20. }
  21. public Weather[] weather { get; set; }
  22.  
  23.  
  24. public string Base { get; set; }
  25.  
  26. public class Main {
  27.  
  28. public float temp { get; set; }
  29. public int pressure { get; set; }
  30. public int humidity { get; set; }
  31. public float temp_min { get; set; }
  32. float temp_max { get; set; }
  33. }
  34.  
  35. public Main main { get; set; }
  36.  
  37. public double visibility { get; set; }
  38.  
  39.  
  40. public class Wind
  41. {
  42. public float speed { get; set; }
  43. public float deg { get; set; }
  44. }
  45.  
  46. public Wind wind { get; set; }
  47.  
  48.  
  49. public double dt { get; set; }
  50.  
  51. public class Sys
  52. {
  53. public int type { get; set; }
  54. public int id { get; set; }
  55. public float message { get; set; }
  56. public string country { get; set; }
  57. public long sunrise { get; set; }
  58. public long sunset { get; set; }
  59. }
  60.  
  61. public Sys sys { get; set; }
  62.  
  63. public int id { get; set; }
  64. public string name { get; set; }
  65. public int cod { get; set; }
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement