/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.weather.web.internal.model; import java.io.Serializable; /** * @author Brian Wing Shun Chan */ public class Weather implements Serializable { public Weather() { } public Weather(String zip, float currentTemp) { this(zip, null, null, currentTemp); } public Weather( String zip, String cityId, String iconURL, float currentTemp) { this( zip, cityId, iconURL, null, currentTemp, (float)0.0, (float)0.0, null); } public Weather( String zip, String cityId, String iconURL, String conditions, float currentTemp, float humidity, float barometer, String barometerDirection) { _zip = zip; _cityId = cityId; _iconURL = iconURL; _conditions = conditions; _currentTemp = currentTemp; _humidity = humidity; _barometer = barometer; _barometerDirection = barometerDirection; } public float getBarometer() { return _barometer; } public String getBarometerDirection() { return _barometerDirection; } public String getCityId() { return _cityId; } public String getConditions() { return _conditions; } public float getCurrentTemp() { return _currentTemp; } public float getHumidity() { return _humidity; } public String getIconURL() { return _iconURL; } public String getZip() { return _zip; } public void setBarometer(float barometer) { _barometer = barometer; } public void setBarometerDirection(String barometerDirection) { _barometerDirection = barometerDirection; } public void setCityId(String cityId) { _cityId = cityId; } public void setConditions(String conditions) { _conditions = conditions; } public void setCurrentTemp(float currentTemp) { _currentTemp = currentTemp; } public void setHumidity(float humidity) { _humidity = humidity; } public void setIconURL(String iconURL) { _iconURL = iconURL; } public void setZip(String zip) { _zip = zip; } private float _barometer; private String _barometerDirection; private String _cityId; private String _conditions; private float _currentTemp; private float _humidity; private String _iconURL; private String _zip; }