Android Open Source - android-facade-example City

From Project

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.

Java Source Code

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;


 * Created by ruenzuo on 09/05/14.
@Table(name = "City")
public class City extends Model implements Serializable {

    @Column(name = "name")
    private String name;
    @Column(name = "latitude")
    private String latitude;
    @Column(name = "longitude")
    private String longitude;
    @Column(name = "countryCode")
    private String countryCode;

    public String getName() {
        return name;

    public void setName(String 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;


Java Source Code List