com.hoiio.sdk.objects.number
Class Country

java.lang.Object
  extended by com.hoiio.sdk.objects.number.Country

public class Country
extends Object


Constructor Summary
Country(net.sf.json.JSONObject output)
          Constructs a new Country object by decoding the JSONObject as a response from the HTTP Request
 
Method Summary
 String getCode()
          Gets the code of this country
 String getName()
          Gets the name of this country
 String getPrefix()
          Gets the code prefix of this country
 List<State> getStateList()
          Gets the list of states within the country (if available)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Country

public Country(net.sf.json.JSONObject output)
Constructs a new Country object by decoding the JSONObject as a response from the HTTP Request

Parameters:
output - The response of the HTTP Request
Method Detail

getCode

public String getCode()
Gets the code of this country

Returns:
Country codes in ISO 3166-1 alpha-2 format.

getName

public String getName()
Gets the name of this country

Returns:
Country name.

getPrefix

public String getPrefix()
Gets the code prefix of this country

Returns:
IDD country calling code prefix.

getStateList

public List<State> getStateList()
Gets the list of states within the country (if available)

Returns:
List of states within the country. This is present only for countries where we support subscribing to numbers from specific states.