Android Open Source - Pick-n-Eat-Android Restaurant






From Project

Back to project page Pick-n-Eat-Android.

License

The source code is released under:

MIT License

If you think the Android project Pick-n-Eat-Android 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.nicolasdu.pick_n_eat;
/*from   www  .  j a v  a 2s .  c om*/
import android.media.Image;

import java.io.Serializable;
import java.net.URL;
import java.util.ArrayList;

/**
 * Created by Nicolas on 1/30/2015.
 */
public class Restaurant implements Serializable{

    private String Title;
    private ArrayList<String> Address;
    private URL Website;
    private float Longitude;
    private float Latitude;
    private URL Rating;
    private ArrayList<Review> Reviews = new ArrayList<>();
    private String Phone;
    private String DisplayPhone;

    private  Restaurant() {
    }


    public  Restaurant(String title, ArrayList<String> address, URL website, float longitude, float latitude, URL rating, String phone, String displayPhone) {
        Title = title;
        Address = address;
        Website = website;
        Longitude = longitude;
        Latitude = latitude;
        Rating = rating;
        Phone = phone;
        DisplayPhone = displayPhone;
    }

    public String getTitle() {
        return Title;
    }

    public void setTitle(String title) {
        Title = title;
    }

    public ArrayList<String> getAddress() {
        return Address;
    }

    public void setAddress(ArrayList<String> address) {
        Address = address;
    }

    public URL getWebsite() {
        return Website;
    }

    public void setWebsite(URL website) {
        Website = website;
    }

    public float getLongitude() {
        return Longitude;
    }

    public void setLongitude(float longitude) {
        Longitude = longitude;
    }

    public float getLatitude() {
        return Latitude;
    }

    public void setLatitude(float latitude) {
        Latitude = latitude;
    }

    public URL getRating() {
        return Rating;
    }

    public void setRating(URL rating) {
        Rating = rating;
    }

    public String getPhone() {
        return Phone;
    }

    public void setPhone(String phone) {
        Phone = phone;
    }

    public String getDisplayPhone() {
        return DisplayPhone;
    }

    public void setDisplayPhone(String displayPhone) {
        DisplayPhone = displayPhone;
    }

    @Override
    public String toString(){
        return "Name :"+getTitle()+
                " Address :"+getAddress()+
                " Website :"+getWebsite()+
                " Longitude :"+getLongitude()+
                " Latitude :"+getLatitude()+
                " Rating :"+getRating() +
                " Phone :"+getPhone();
    }
}




Java Source Code List

com.nicolasdu.pick_n_eat.ApplicationTest.java
com.nicolasdu.pick_n_eat.MainActivity.java
com.nicolasdu.pick_n_eat.RestaurantActivity.java
com.nicolasdu.pick_n_eat.Restaurant.java
com.nicolasdu.pick_n_eat.Review.java
com.nicolasdu.pick_n_eat.SettingsActivity.java
com.nicolasdu.pick_n_eat.SplashActivity.java
com.nicolasdu.pick_n_eat.YelpManager.java
com.nicolasdu.pick_n_eat.Yelp.java