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; /*w w w . j a v a 2 s . c o 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 = "City") public class City extends Model implements Serializable { @Column(name = "name") @SerializedName("name") private String name; @Column(name = "latitude") @SerializedName("lat") private String latitude; @Column(name = "longitude") @SerializedName("lng") private String longitude; @Column(name = "countryCode") @SerializedName("countryCode") private String countryCode; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getLatitude() { return latitude; } public void setLatitude(String latitude) { this.latitude = latitude; } public String getLongitude() { return longitude; } public void setLongitude(String longitude) { this.longitude = longitude; } public String getCountryCode() { return countryCode; } public void setCountryCode(String countryCode) { this.countryCode = countryCode; } }