Skip to content

Instantly share code, notes, and snippets.

@rohitsthaa
Created October 21, 2015 03:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohitsthaa/62f900e84b5471dfc86f to your computer and use it in GitHub Desktop.
Save rohitsthaa/62f900e84b5471dfc86f to your computer and use it in GitHub Desktop.
public class City {
private Integer id;
private String name;
private Coord coord;
private String country;
private Integer population;
private Sys sys;
/**
*
* @return
* The id
*/
public Integer getId() {
return id;
}
/**
*
* @param id
* The id
*/
public void setId(Integer id) {
this.id = id;
}
/**
*
* @return
* The name
*/
public String getName() {
return name;
}
/**
*
* @param name
* The name
*/
public void setName(String name) {
this.name = name;
}
/**
*
* @return
* The coord
*/
public Coord getCoord() {
return coord;
}
/**
*
* @param coord
* The coord
*/
public void setCoord(Coord coord) {
this.coord = coord;
}
/**
*
* @return
* The country
*/
public String getCountry() {
return country;
}
/**
*
* @param country
* The country
*/
public void setCountry(String country) {
this.country = country;
}
/**
*
* @return
* The population
*/
public Integer getPopulation() {
return population;
}
/**
*
* @param population
* The population
*/
public void setPopulation(Integer population) {
this.population = population;
}
/**
*
* @return
* The sys
*/
public Sys getSys() {
return sys;
}
/**
*
* @param sys
* The sys
*/
public void setSys(Sys sys) {
this.sys = sys;
}
}
public class Clouds {
private Integer all;
/**
*
* @return
* The all
*/
public Integer getAll() {
return all;
}
/**
*
* @param all
* The all
*/
public void setAll(Integer all) {
this.all = all;
}
}
public class Coord {
private Double lon;
private Double lat;
/**
*
* @return
* The lon
*/
public Double getLon() {
return lon;
}
/**
*
* @param lon
* The lon
*/
public void setLon(Double lon) {
this.lon = lon;
}
/**
*
* @return
* The lat
*/
public Double getLat() {
return lat;
}
/**
*
* @param lat
* The lat
*/
public void setLat(Double lat) {
this.lat = lat;
}
}
import java.util.ArrayList;
/**
* Created by rohit on 10/15/15.
*/
public class List {
private Integer dt;
private Main main;
private java.util.List<Weather> weather = new ArrayList<Weather>();
private Clouds clouds;
private Wind wind;
private Rain rain;
private Sys_ sys;
private String dtTxt;
/**
*
* @return
* The dt
*/
public Integer getDt() {
return dt;
}
/**
*
* @param dt
* The dt
*/
public void setDt(Integer dt) {
this.dt = dt;
}
/**
*
* @return
* The main
*/
public Main getMain() {
return main;
}
/**
*
* @param main
* The main
*/
public void setMain(Main main) {
this.main = main;
}
/**
*
* @return
* The weather
*/
public java.util.List<Weather> getWeather() {
return weather;
}
/**
*
* @param weather
* The weather
*/
public void setWeather(java.util.List<Weather> weather) {
this.weather = weather;
}
/**
*
* @return
* The clouds
*/
public Clouds getClouds() {
return clouds;
}
/**
*
* @param clouds
* The clouds
*/
public void setClouds(Clouds clouds) {
this.clouds = clouds;
}
/**
*
* @return
* The wind
*/
public Wind getWind() {
return wind;
}
/**
*
* @param wind
* The wind
*/
public void setWind(Wind wind) {
this.wind = wind;
}
/**
*
* @return
* The rain
*/
public Rain getRain() {
return rain;
}
/**
*
* @param rain
* The rain
*/
public void setRain(Rain rain) {
this.rain = rain;
}
/**
*
* @return
* The sys
*/
public Sys_ getSys() {
return sys;
}
/**
*
* @param sys
* The sys
*/
public void setSys(Sys_ sys) {
this.sys = sys;
}
/**
*
* @return
* The dtTxt
*/
public String getDtTxt() {
return dtTxt;
}
/**
*
* @param dtTxt
* The dt_txt
*/
public void setDtTxt(String dtTxt) {
this.dtTxt = dtTxt;
}
}
public class Main {
private Double temp;
private Double tempMin;
private Double tempMax;
private Double pressure;
private Double seaLevel;
private Double grndLevel;
private Integer humidity;
private Integer tempKf;
/**
*
* @return
* The temp
*/
public Double getTemp() {
return temp;
}
/**
*
* @param temp
* The temp
*/
public void setTemp(Double temp) {
this.temp = temp;
}
/**
*
* @return
* The tempMin
*/
public Double getTempMin() {
return tempMin;
}
/**
*
* @param tempMin
* The temp_min
*/
public void setTempMin(Double tempMin) {
this.tempMin = tempMin;
}
/**
*
* @return
* The tempMax
*/
public Double getTempMax() {
return tempMax;
}
/**
*
* @param tempMax
* The temp_max
*/
public void setTempMax(Double tempMax) {
this.tempMax = tempMax;
}
/**
*
* @return
* The pressure
*/
public Double getPressure() {
return pressure;
}
/**
*
* @param pressure
* The pressure
*/
public void setPressure(Double pressure) {
this.pressure = pressure;
}
/**
*
* @return
* The seaLevel
*/
public Double getSeaLevel() {
return seaLevel;
}
/**
*
* @param seaLevel
* The sea_level
*/
public void setSeaLevel(Double seaLevel) {
this.seaLevel = seaLevel;
}
/**
*
* @return
* The grndLevel
*/
public Double getGrndLevel() {
return grndLevel;
}
/**
*
* @param grndLevel
* The grnd_level
*/
public void setGrndLevel(Double grndLevel) {
this.grndLevel = grndLevel;
}
/**
*
* @return
* The humidity
*/
public Integer getHumidity() {
return humidity;
}
/**
*
* @param humidity
* The humidity
*/
public void setHumidity(Integer humidity) {
this.humidity = humidity;
}
/**
*
* @return
* The tempKf
*/
public Integer getTempKf() {
return tempKf;
}
/**
*
* @param tempKf
* The temp_kf
*/
public void setTempKf(Integer tempKf) {
this.tempKf = tempKf;
}
}
public class Sys {
private Integer population;
/**
*
* @return
* The population
*/
public Integer getPopulation() {
return population;
}
/**
*
* @param population
* The population
*/
public void setPopulation(Integer population) {
this.population = population;
}
}
public class Sys_ {
private String pod;
/**
*
* @return
* The pod
*/
public String getPod() {
return pod;
}
/**
*
* @param pod
* The pod
*/
public void setPod(String pod) {
this.pod = pod;
}
}
public class Weather {
private Integer id;
private String main;
private String description;
private String icon;
/**
*
* @return
* The id
*/
public Integer getId() {
return id;
}
/**
*
* @param id
* The id
*/
public void setId(Integer id) {
this.id = id;
}
/**
*
* @return
* The main
*/
public String getMain() {
return main;
}
/**
*
* @param main
* The main
*/
public void setMain(String main) {
this.main = main;
}
/**
*
* @return
* The description
*/
public String getDescription() {
return description;
}
/**
*
* @param description
* The description
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* @return
* The icon
*/
public String getIcon() {
return icon;
}
/**
*
* @param icon
* The icon
*/
public void setIcon(String icon) {
this.icon = icon;
}
import java.util.ArrayList;
/**
* Created by rohit on 10/15/15.
*/
public class WeatherData {
private City city;
private String cod;
private String message;
private Integer cnt;
private java.util.List<List> list = new ArrayList<List>();
/**
*
* @return
* The city
*/
public City getCity() {
return city;
}
/**
*
* @param city
* The city
*/
public void setCity(City city) {
this.city = city;
}
/**
*
* @return
* The cod
*/
public String getCod() {
return cod;
}
/**
*
* @param cod
* The cod
*/
public void setCod(String cod) {
this.cod = cod;
}
/**
*
* @return
* The message
*/
public String getMessage() {
return message;
}
/**
*
* @param message
* The message
*/
public void setMessage(String message) {
this.message = message;
}
/**
*
* @return
* The cnt
*/
public Integer getCnt() {
return cnt;
}
/**
*
* @param cnt
* The cnt
*/
public void setCnt(Integer cnt) {
this.cnt = cnt;
}
/**
*
* @return
* The list
*/
public java.util.List<List> getList() {
return list;
}
/**
*
* @param list
* The list
*/
public void setList(java.util.List<List> list) {
this.list = list;
}
}
public class Wind {
private Double speed;
private Double deg;
/**
*
* @return
* The speed
*/
public Double getSpeed() {
return speed;
}
/**
*
* @param speed
* The speed
*/
public void setSpeed(Double speed) {
this.speed = speed;
}
/**
*
* @return
* The deg
*/
public Double getDeg() {
return deg;
}
/**
*
* @param deg
* The deg
*/
public void setDeg(Double deg) {
this.deg = deg;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment