com.hoiio.sdk.objects.account
Class Account

java.lang.Object
  extended by com.hoiio.sdk.objects.HoiioResponse
      extended by com.hoiio.sdk.objects.account.Account

public class Account
extends HoiioResponse


Constructor Summary
Account(net.sf.json.JSONObject output)
          Constructs a new Account object by decoding the JSONObject as a response from the HTTP Request
 
Method Summary
 String getCountry()
          Gets the country of this account
 Currency getCurrency()
          Gets the currency of this account
 String getEmail()
          Gets the email address of this account
 String getMobileNumber()
          Gets the registered number of this account
 String getName()
          Gets the full name of this account
 String getPrefix()
          Gets the country code prefix of this account
 String getUid()
          Gets the user ID of this account
 
Methods inherited from class com.hoiio.sdk.objects.HoiioResponse
getContent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Account

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

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

getCountry

public String getCountry()
Gets the country of this account

Returns:
The country of this account in ISO 3166-1 alpha-2 format (e.g. SG).

getCurrency

public Currency getCurrency()
Gets the currency of this account

Returns:
Currency used for this account.

getEmail

public String getEmail()
Gets the email address of this account

Returns:
The email address of this account. This is present only if the email address is verified.

getMobileNumber

public String getMobileNumber()
Gets the registered number of this account

Returns:
The registered number of this account. Phone number starts with a "+" and country code (E.164 format), e.g. +6511111111.

getName

public String getName()
Gets the full name of this account

Returns:
The full name of this account.

getPrefix

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

Returns:
The country code prefix of this account (e.g. +65)

getUid

public String getUid()
Gets the user ID of this account

Returns:
The user ID of this account.