com.hoiio.sdk.objects.number
Class State

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

public class State
extends Object


Constructor Summary
State(net.sf.json.JSONObject output)
          Constructs a new State object by decoding the JSONObject as a response from the HTTP Request
 
Method Summary
 List<NumberCapability> getCapability()
          Gets the capabilities of numbers in this state
 String getCode()
          Gets the state code
 String getName()
          Gets the state name
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

State

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

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

getCapability

public List<NumberCapability> getCapability()
Gets the capabilities of numbers in this state

Returns:
The capabilities of numbers in this state: voice, sms

getCode

public String getCode()
Gets the state code

Returns:
two letter state code defined in ISO 3166-2

getName

public String getName()
Gets the state name

Returns:
state name