Android Open Source - android-async-google-places Status






From Project

Back to project page android-async-google-places.

License

The source code is released under:

Apache License

If you think the Android project android-async-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 io.github.axxiss.places.enums;
/*from ww w  .j a va  2  s  .  c o m*/
/**
 * The "status" field within the search response object contains the status of the request, and may
 * contain debugging information to help you track down why the request failed.
 * <p/>
 * The "status" field may contain the values defined in this class.
 *
 * @author Axxiss
 */
public enum Status {
    /**
     * indicates that no errors occurred; the place was successfully detected and at least one
     * result was returned.
     */
    OK("OK"),

    /**
     * Indicates a server-side error; trying again may be successful.
     */
    UNKNOWN_ERROR("UNKNOWN_ERROR"),

    /**
     * Indicates that the search was successful but returned no results. This may occur if the
     * search was passed a latlng in a remote location.
     */
    ZERO_RESULTS("ZERO_RESULTS"),

    /**
     * Indicates that you are over your quota.
     */
    OVER_QUERY_LIMIT("OVER_QUERY_LIMIT"),

    /**
     * Indicates that your request was denied, generally because of lack of a sensor parameter.
     */
    REQUEST_DENIED("REQUEST_DENIED"),

    /**
     * Generally indicates that a required query parameter (location or radius) is missing.
     */
    INVALID_REQUEST("INVALID_REQUEST"),

    /**
     * Indicates that the referenced location was not found in the Places database.
     */
    NOT_FOUND("NOT_FOUND");

    private String mValue;

    /**
     * Set the string value of the enum.
     *
     * @param value
     */
    private Status(String value) {
        mValue = value;
    }

    /**
     * Returns the string value of the enum.
     *
     * @return
     */
    public String toString() {
        return mValue;
    }

}




Java Source Code List

io.github.axxis.places.sample.MainActivity.java
io.github.axxis.places.sample.PlaceActivity.java
io.github.axxiss.places.PlacesSettings.java
io.github.axxiss.places.Response.java
io.github.axxiss.places.callback.PhotoCallback.java
io.github.axxiss.places.callback.PlacesCallback.java
io.github.axxiss.places.enums.Params.java
io.github.axxiss.places.enums.PlaceType.java
io.github.axxiss.places.enums.Price.java
io.github.axxiss.places.enums.RankBy.java
io.github.axxiss.places.enums.Request.java
io.github.axxiss.places.enums.Status.java
io.github.axxiss.places.exception.ApiPlacesException.java
io.github.axxiss.places.listeners.OnPlaceClickListener.java
io.github.axxiss.places.model.AddressComponent.java
io.github.axxiss.places.model.AspectRating.java
io.github.axxiss.places.model.Event.java
io.github.axxiss.places.model.Geometry.java
io.github.axxiss.places.model.Location.java
io.github.axxiss.places.model.OpeningHours.java
io.github.axxiss.places.model.PeriodData.java
io.github.axxiss.places.model.Period.java
io.github.axxiss.places.model.Photo.java
io.github.axxiss.places.model.Place.java
io.github.axxiss.places.model.Review.java
io.github.axxiss.places.request.BaseSearch.java
io.github.axxiss.places.request.NearbySearch.java
io.github.axxiss.places.request.PlaceDetails.java
io.github.axxiss.places.request.PlaceParams.java
io.github.axxiss.places.request.PlacePhotos.java
io.github.axxiss.places.request.PlaceSearch.java
io.github.axxiss.places.request.PlacesClient.java
io.github.axxiss.places.request.RadarSearch.java
io.github.axxiss.places.request.TextSearch.java