Back to project page umbrella.alert.
The source code is released under:
GNU General Public License
If you think the Android project umbrella.alert listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package macbury.umbrella.model; /*from w w w. ja va 2 s . com*/ import java.util.Date; /** * Created by macbury on 27.08.14. */ public class RainData { private float volume; private Date at; private float temperature; private int humidity = 0; public RainData() { } public Date getAt() { return at; } public void setAt(Date at) { this.at = at; } public void setAt(int t) { at = new Date(); at.setTime((long)t*1000); } public float getVolume() { return volume; } public void setVolume(float volume) { this.volume = volume; } public boolean isRaining() { return volume > 0; } public float getTemperature() { return temperature; } public void setTemperature(float temperature) { this.temperature = temperature - 273.15f; // Convert to kelvins } public int getHumidity() { return humidity; } public void setHumidity(int humidity) { this.humidity = humidity; } }