package com.google.sps.data;

/** Listing object with the specified attributes returned from the places API **/
public class Listing {
    private String name;
    private MapLocation mapLocation;
    private double rating;
    private String image;
    private String url;
    private String businessType;

  /**
  * Creates a new Listing
  * @param name Name of business
  * @param mapLocation Location of business (lat/long coordinate)
  * @param rating Numerical rating of business (1-5)
  * @param image Image
  * @param url Url to business' site
  * @param businessType specifies business type from Places API (establishment, food, etc.)
  * @return Listing object
  **/

  public Listing(String name, MapLocation mapLocation, double rating, String image, String url) {
    this.name = name;
    this.mapLocation = mapLocation;
    this.rating = rating;
    this.image = image;
    this.url = url;
    this.businessType = businessType;
  }

  public String getName() {
    return name;
  }

  public MapLocation getMapLocation() {
    return mapLocation;
  }

  public double getRating() {
    return rating;
  }

  public String getImage() {
    return image;
  } 

  public String getUrl() {
    return url;
  }

  public String getBusinessType() {
    return businessType;
  }
}
@@ -21,16 +21,52 @@
 ps.data;
+%0Aimport com.google.maps.model.Photo;
 %0A%0A/** Li
@@ -269,44 +269,22 @@
 ate 
-String image;%0A    private String url
+Photo photos%5B%5D
 ;%0A  
@@ -312,16 +312,19 @@
 nessType
+s%5B%5D
 ;%0A%0A  /**
@@ -517,56 +517,44 @@
 ram 
-image Image%0A  * @param url Url to business' site
+photos Array of Google Photo objects
 %0A  *
@@ -750,32 +750,46 @@
 ng, 
-String image, String url
+Photo photos%5B%5D, String businessTypes%5B%5D
 ) %7B%0A
@@ -885,41 +885,23 @@
 his.
-image = image;%0A    this.url = url
+photos = photos
 ;%0A  
@@ -919,16 +919,17 @@
 nessType
+s
  = busin
@@ -931,24 +931,25 @@
 businessType
+s
 ;%0A  %7D%0A%0A  pub
@@ -1129,98 +1129,53 @@
 lic 
-String getImage() %7B%0A    return image;%0A  %7D %0A%0A  public String getUrl() %7B%0A    return url
+Photo%5B%5D getPhotos() %7B%0A    return photos
 ;%0A  %7D
+ 
 %0A%0A  
@@ -1183,24 +1183,26 @@
 ublic String
+%5B%5D
  getBusiness
@@ -1205,16 +1205,17 @@
 nessType
+s
 () %7B%0A   
@@ -1234,15 +1234,16 @@
 nessType
+s
 ;%0A  %7D%0A%7D

Change parameters for places api output