com.lmax.api.account
Class AccountDetails

java.lang.Object
  extended by com.lmax.api.account.AccountDetails

public class AccountDetails
extends java.lang.Object

Contains the account details for the logged-in account.


Constructor Summary
AccountDetails(long accountId, java.lang.String username, java.lang.String currency, java.lang.String registrationLegalEntity, java.lang.String displayLocale, boolean fundingAllowed)
          Constructor for the AccountDetails value object.
 
Method Summary
 long getAccountId()
          Returns the account id for the registered user.
 java.lang.String getCurrency()
          Returns the base currency for the registered user.
 java.lang.String getDisplayLocale()
          Returns the locale the user has registered in.
 java.lang.String getRegistrationLegalEntity()
          Returns the legal entity the user has registered in.
 java.lang.String getUsername()
          Returns the username for the registered user.
 boolean isFundingAllowed()
          Returns true if funding is allowed.
 java.lang.String toString()
          String representation of AccountDetails.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccountDetails

public AccountDetails(long accountId,
                      java.lang.String username,
                      java.lang.String currency,
                      java.lang.String registrationLegalEntity,
                      java.lang.String displayLocale,
                      boolean fundingAllowed)
Constructor for the AccountDetails value object.

Parameters:
accountId - the account id for the registered user.
username - the username for the registered user.
currency - the base currency for the registered user.
registrationLegalEntity - the legal entity the user has registered in.
displayLocale - the locale the user has registered in.
fundingAllowed - true if funding is allowed.
Method Detail

getUsername

public java.lang.String getUsername()
Returns the username for the registered user.

Returns:
the username for the registered user.

getCurrency

public java.lang.String getCurrency()
Returns the base currency for the registered user.

Returns:
the base currency for the registered user.

getAccountId

public long getAccountId()
Returns the account id for the registered user.

Returns:
the account id for the registered user.

getRegistrationLegalEntity

public java.lang.String getRegistrationLegalEntity()
Returns the legal entity the user has registered in.

Returns:
the legal entity the user has registered in.

getDisplayLocale

public java.lang.String getDisplayLocale()
Returns the locale the user has registered in.

Returns:
the locale the user has registered in.

isFundingAllowed

public boolean isFundingAllowed()
Returns true if funding is allowed.

Returns:
true if funding is allowed.

toString

public java.lang.String toString()
String representation of AccountDetails.

Overrides:
toString in class java.lang.Object
Returns:
AccountDetails as a string