/app/src/main/java/com/solariswu/weather/models/WeatherData.java

https://gitlab.com/solariswu/weatherforecast · Java · 185 lines · 82 code · 23 blank · 80 comment · 0 complexity · bf2ea56799ded5491c491f612f316b05 MD5 · raw file

  1. package com.solariswu.weather.models;
  2. import com.google.gson.annotations.Expose;
  3. import com.google.gson.annotations.SerializedName;
  4. public class WeatherData {
  5. @SerializedName("latitude")
  6. @Expose
  7. private Double latitude;
  8. @SerializedName("longitude")
  9. @Expose
  10. private Double longitude;
  11. @SerializedName("timezone")
  12. @Expose
  13. private String timezone;
  14. @SerializedName("offset")
  15. @Expose
  16. private Integer offset;
  17. @SerializedName("currently")
  18. @Expose
  19. private Currently currently;
  20. @SerializedName("hourly")
  21. @Expose
  22. private Hourly hourly;
  23. @SerializedName("daily")
  24. @Expose
  25. private Daily daily;
  26. @SerializedName("flags")
  27. @Expose
  28. private Flags flags;
  29. @SerializedName("alerts")
  30. @Expose
  31. private Alerts alerts[];
  32. /**
  33. *
  34. * @return
  35. * The latitude
  36. */
  37. public Double getLatitude() {
  38. return latitude;
  39. }
  40. /**
  41. *
  42. * @param latitude
  43. * The latitude
  44. */
  45. public void setLatitude(Double latitude) {
  46. this.latitude = latitude;
  47. }
  48. /**
  49. *
  50. * @return
  51. * The longitude
  52. */
  53. public Double getLongitude() {
  54. return longitude;
  55. }
  56. /**
  57. *
  58. * @param longitude
  59. * The longitude
  60. */
  61. public void setLongitude(Double longitude) {
  62. this.longitude = longitude;
  63. }
  64. /**
  65. *
  66. * @return
  67. * The timezone
  68. */
  69. public String getTimezone() {
  70. return timezone;
  71. }
  72. /**
  73. *
  74. * @param timezone
  75. * The timezone
  76. */
  77. public void setTimezone(String timezone) {
  78. this.timezone = timezone;
  79. }
  80. /**
  81. *
  82. * @return
  83. * The offset
  84. */
  85. public Integer getOffset() {
  86. return offset;
  87. }
  88. /**
  89. *
  90. * @param offset
  91. * The offset
  92. */
  93. public void setOffset(Integer offset) {
  94. this.offset = offset;
  95. }
  96. /**
  97. *
  98. * @return
  99. * The currently
  100. */
  101. public Currently getCurrently() {
  102. return currently;
  103. }
  104. /**
  105. *
  106. * @param currently
  107. * The currently
  108. */
  109. public void setCurrently(Currently currently) {
  110. this.currently = currently;
  111. }
  112. /**
  113. *
  114. * @return
  115. * The hourly
  116. */
  117. public Hourly getHourly() {
  118. return hourly;
  119. }
  120. /**
  121. *
  122. * @param hourly
  123. * The hourly
  124. */
  125. public void setHourly(Hourly hourly) {
  126. this.hourly = hourly;
  127. }
  128. /**
  129. *
  130. * @return
  131. * The daily
  132. */
  133. public Daily getDaily() {
  134. return daily;
  135. }
  136. /**
  137. *
  138. * @param daily
  139. * The daily
  140. */
  141. public void setDaily(Daily daily) {
  142. this.daily = daily;
  143. }
  144. /**
  145. *
  146. * @return
  147. * The flags
  148. */
  149. public Flags getFlags() {
  150. return flags;
  151. }
  152. /**
  153. *
  154. * @param flags
  155. * The flags
  156. */
  157. public void setFlags(Flags flags) {
  158. this.flags = flags;
  159. }
  160. public Alerts[] getAlerts() {return alerts; }
  161. public void setAlerts(Alerts alerts[]) { this.alerts = alerts; }
  162. }