2 * Copyright 2014 Gustavo Martin Morcuende
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package name.gumartinm.weather.information.model.currentweather;
18 import java.io.Serializable;
19 import java.util.Date;
20 import java.util.List;
22 public class Current implements Serializable {
23 private static final long serialVersionUID = -730690341739860818L;
25 private Clouds clouds;
35 private List<Weather> weather;
37 private byte[] iconData;
40 public String getBase(){
43 public void setBase(final String base){
46 public Clouds getClouds(){
49 public void setClouds(final Clouds clouds){
53 public Number getCod() {
57 public void setCod(final Number cod) {
60 public Coord getCoord(){
63 public void setCoord(final Coord coord){
66 public Number getDt(){
69 public void setDt(final Number dt){
72 public Number getId(){
75 public void setId(final Number id){
78 public Main getMain(){
81 public void setMain(final Main main){
84 public String getName(){
87 public void setName(final String name){
90 public Rain getRain(){
93 public void setRain(final Rain rain){
96 public Snow getSnow() {
99 public void setSnow(final Snow snow) {
105 public void setSys(final Sys sys){
108 public List<Weather> getWeather(){
111 public void setWeather(final List<Weather> weather){
112 this.weather = weather;
114 public Wind getWind(){
117 public void setWind(final Wind wind){
121 public byte[] getIconData() {
122 return this.iconData;
125 public void setIconData(final byte[] iconData) {
126 this.iconData = iconData;
129 public Date getDate() {
133 public void setDate(final Date date) {
138 public String toString() {
139 final StringBuilder builder = new StringBuilder();
140 builder.append("Current [base=").append(this.base).append(", clouds=")
141 .append(this.clouds).append(", cod=").append(this.cod).append(", coord=")
142 .append(this.coord).append(", dt=").append(this.dt).append(", id=").append(this.id)
143 .append(", main=").append(this.main).append(", name=").append(this.name)
144 .append(", rain=").append(this.rain).append(", snow=").append(this.snow)
145 .append(", sys=").append(this.sys).append(", weather=").append(this.weather)
146 .append(", wind=").append(this.wind).append("]");
147 return builder.toString();