All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.placesapiclient.client.StatusCode Maven / Gradle / Ivy

The newest version!
package com.googlecode.placesapiclient.client;

/**
 * Google Places status code mapping.
 *
 * @author Łukasz Opaluch
 */
public enum StatusCode {
    /**
     * Indicates that no errors occurred and at least one result was returned.
     */
    OK(0),
    /**
     * Indicates that the search was successful but returned no results. This may occur if the search was passed a bounds in a remote location.
     */
    ZERO_RESULTS(1),
    /**
     * Indicates that you are over your quota.
     */
    OVER_QUERY_LIMIT(2),
    /**
     * Indicates that your request was denied, generally because of lack of a sensor parameter.
     */
    REQUEST_DENIED(3),
    /**
     * Generally indicates that the input parameter is missing.
     */
    INVALID_REQUEST(4);


    private final int errorCode;

    StatusCode(int i) {
        errorCode = i;
    }

    public int getErrorCode() {
        return errorCode;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy