Package com.vonage.client.insight
Class BasicInsightResponse
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.insight.BasicInsightResponse
- All Implemented Interfaces:
Jsonable
- Direct Known Subclasses:
StandardInsightResponse
Response object constructed from the JSON payload returned for Basic number insight requests.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
BasicInsightResponse
public BasicInsightResponse()
-
-
Method Details
-
fromJson
-
getStatus
- Returns:
- The status code of the message, as an enum.
-
getStatusMessage
- Returns:
- The status description of your request.
-
getRequestId
- Returns:
- The unique identifier for your request. This is an alphanumeric string of up to 40 characters.
-
getInternationalFormatNumber
- Returns:
- The number in your request in international format.
-
getNationalFormatNumber
- Returns:
- The number in your request in the format used by the country the number belongs to.
-
getCountryCode
- Returns:
- Two character country code for number. This is in ISO 3166-1 alpha-2 format.
-
getCountryCodeIso3
- Returns:
- Three character country code for number. This is in ISO 3166-1 alpha-3 format.
-
getCountryName
- Returns:
- The full name of the country that number is registered in.
-
getCountryPrefix
- Returns:
- The numeric prefix for the country that number is registered in.
-