com.hoiio.sdk.objects.number
Class Number

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

public class Number
extends Object


Constructor Summary
Number(net.sf.json.JSONObject output)
          Constructs a new Number object by decoding the JSONObject as a response from the HTTP Request
 
Method Summary
 AutoExtendStatus getAutoExtendStatus()
          Gets the auto extend status of this number
 String getCountry()
          Gets the country that this number belong to
 Date getExpiry()
          Gets the expiry date for this number
 String getForwardTo()
          Gets the URL of the forward to
 String getForwardToSms()
          Gets the URL of the forward to sms
 String getMode()
          Gets the mode of this number
 String getNumber()
          Gets the Hoiio Number assigned to this application
 String getState()
          Gets the state that this number belong to
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Number

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

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

getAutoExtendStatus

public AutoExtendStatus getAutoExtendStatus()
Gets the auto extend status of this number

Returns:
Whether this number is automatically extended. Allowed values: enabled, disabled.

getCountry

public String getCountry()
Gets the country that this number belong to

Returns:
The country that this Hoiio Number belong to in ISO 3166-1 alpha-2 format.

getExpiry

public Date getExpiry()
Gets the expiry date for this number

Returns:
The expiry date for this Hoiio Number in "YYYY-MM-DD" format (GMT+8).

getForwardTo

public String getForwardTo()
Gets the URL of the forward to

Returns:
A fully-qualified HTTP/S URL on your web server to be notified when there is an incoming call to this Hoiio Numbe

getForwardToSms

public String getForwardToSms()
Gets the URL of the forward to sms

Returns:
A fully-qualified HTTP/S URL on your web server to be notified when there is an incoming call to this Hoiio Numbe

getNumber

public String getNumber()
Gets the Hoiio Number assigned to this application

Returns:
The Hoiio Number assigned to your application. Phone numbers start with a "+" and country code (E.164 format), e.g. +6511111111.

getState

public String getState()
Gets the state that this number belong to

Returns:
The state that this Hoiio Number belong to in ISO 3166-2 format. Is an empty string if the number is not state specific.

getMode

public String getMode()
Gets the mode of this number

Returns:
The mode of this number: voice, fax