Enum PlacesRequestError
- All Implemented Interfaces:
Serializable,Comparable<PlacesRequestError>,java.lang.constant.Constable
Represents the status of places query service response.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCONFIGURATION_ERROR - occurs whenCONNECTIVITY_ERROR - when the connection object is null (i.e) There is no network connectivity on the deviceINVALID_LATLONG_ERROR - when an invalid latitude or longitude is passed to the getNearByPointsOfInterest APIOK - when fetching the nearByPointsOfInterest is a successPRIVACY_OPTED_OUT - occurs when the privacy on the SDK is opted-outQUERY_SERVICE_UNAVAILABLE - occurs when the network/Json service from the MobileCore is not availableSERVER_RESPONSE_ERROR - occurs during the following scenariosUNKNOWN_ERROR - for any other unknown error -
Method Summary
Modifier and TypeMethodDescriptionstatic PlacesRequestErrorfromInt(int value) Returns aPlacesRequestErrorobject based on the providedintvalue.intgetValue()Returns theintvalue of the enum.static PlacesRequestErrorReturns the enum constant of this type with the specified name.static PlacesRequestError[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
OK
OK - when fetching the nearByPointsOfInterest is a success -
CONNECTIVITY_ERROR
CONNECTIVITY_ERROR - when the connection object is null (i.e) There is no network connectivity on the device -
SERVER_RESPONSE_ERROR
SERVER_RESPONSE_ERROR - occurs during the following scenarios1. When the connection is not 200OK 2. When the server responds with empty JSON response 3. When the server responds with Invalid JSON response
-
INVALID_LATLONG_ERROR
INVALID_LATLONG_ERROR - when an invalid latitude or longitude is passed to the getNearByPointsOfInterest API -
CONFIGURATION_ERROR
CONFIGURATION_ERROR - occurs when1.Places configuration is not available 2.The privacy on the SDK is opted-out
-
QUERY_SERVICE_UNAVAILABLE
QUERY_SERVICE_UNAVAILABLE - occurs when the network/Json service from the MobileCore is not available -
PRIVACY_OPTED_OUT
PRIVACY_OPTED_OUT - occurs when the privacy on the SDK is opted-out -
UNKNOWN_ERROR
UNKNOWN_ERROR - for any other unknown error
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()Returns theintvalue of the enum.- Returns:
intvalue of the enum
-
fromInt
Returns aPlacesRequestErrorobject based on the providedintvalue.If the value provided is not valid,
UNKNOWN_ERRORwill be returned.- Parameters:
value-intto be converted to aPlacesRequestErrorobject- Returns:
PlacesRequestErrorobject equivalent to the provided int
-