Back to project page android-facade-example.
The source code is released under:
MIT License
If you think the Android project android-facade-example 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 com.ruenzuo.weatherapp.models; /*from ww w . java 2 s. co m*/ import com.activeandroid.Model; import com.activeandroid.annotation.Column; import com.activeandroid.annotation.Table; import com.google.gson.annotations.SerializedName; import java.io.Serializable; /** * Created by ruenzuo on 09/05/14. */ @Table(name = "StationData") public class StationData extends Model implements Serializable { @Column(name = "temperature") @SerializedName("temp") private float temperature; @Column(name = "pressure") @SerializedName("pressure") private float pressure; @Column(name = "humidity") @SerializedName("humidity") private float humidity; public float getTemperature() { return temperature; } public void setTemperature(float temperature) { this.temperature = temperature; } public float getPressure() { return pressure; } public void setPressure(float pressure) { this.pressure = pressure; } public float getHumidity() { return humidity; } public void setHumidity(float humidity) { this.humidity = humidity; } }