Android Open Source - YELPIO Restaurant






From Project

Back to project page YELPIO.

License

The source code is released under:

Apache License

If you think the Android project YELPIO 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 io.prediction.example.yelp;
/*www . ja v  a2 s .  com*/
import java.io.Serializable;
import java.util.ArrayList;

/*
** Data structure for Restaurants
*/

public class Restaurant implements Serializable{
    String bid;
    String name;
    String address;
    ArrayList<String> categories;
    double longitude;
    double latitude;
    double stars;
    int image;
    public Restaurant(String bid, String name, String address,
                      ArrayList<String> categories, double longitude, double latitude,
                      double stars) {
        super();
        this.bid = bid;
        this.name = name;
        this.address = address;
        this.categories = categories;
        this.longitude = longitude;
        this.latitude = latitude;
        this.stars = stars;
    }

    public int getImage() { return this.image; }

    public void setImage(int image) { this.image = image; }

    public String getBid() {
        return bid;
    }

    public void setBid(String bid) {
        this.bid = bid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public ArrayList<String> getCategories() {
        return categories;
    }

    public void setCategories(ArrayList<String> categories) {
        this.categories = categories;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getStars() {
        return stars;
    }

    public void setStars(double stars) {
        this.stars = stars;
    }

    @Override
    public String toString() {
        return "Name: " + this.name + ", Categories: " + categories.toString();
    }
}




Java Source Code List

io.prediction.example.yelp.AppDataCollect.java
io.prediction.example.yelp.DetailActivity.java
io.prediction.example.yelp.DeviceUuidFactory.java
io.prediction.example.yelp.IntroActivity.java
io.prediction.example.yelp.PrefActivity.java
io.prediction.example.yelp.RestaurantListActivity.java
io.prediction.example.yelp.Restaurant.java