Android Open Source - android-google-places Details Result






From Project

Back to project page android-google-places.

License

The source code is released under:

Copyright (c) 2012 Greg Marzouka Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Soft...

If you think the Android project android-google-places 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 org.gmarz.googleplaces.models;
/*from   w ww.  ja v  a  2s. c om*/
import org.json.JSONException;
import org.json.JSONObject;


public class DetailsResult extends Result {

  private PlaceDetails mDetails;
  
  public DetailsResult(JSONObject jsonResponse) throws JSONException {
    super(jsonResponse);
    
    if (jsonResponse.has("result")) {
      JSONObject result = jsonResponse.getJSONObject("result");
      mDetails = new PlaceDetails(result);
    } else {
      mDetails = PlaceDetails.getEmpty();
    }
  }

  public PlaceDetails getDetails() {
    return mDetails;
  }
}




Java Source Code List

org.gmarz.googleplaces.GooglePlaces.java
org.gmarz.googleplaces.models.DetailsResult.java
org.gmarz.googleplaces.models.PlaceDetails.java
org.gmarz.googleplaces.models.PlaceReview.java
org.gmarz.googleplaces.models.Place.java
org.gmarz.googleplaces.models.PlacesResult.java
org.gmarz.googleplaces.models.Result.java
org.gmarz.googleplaces.query.DetailsQuery.java
org.gmarz.googleplaces.query.NearbySearchQuery.java
org.gmarz.googleplaces.query.QueryBuilder.java
org.gmarz.googleplaces.query.Query.java
org.gmarz.googleplaces.query.SearchQuery.java
org.gmarz.googleplaces.query.TextSearchQuery.java