Class Account
java.lang.Object
com.mparticle.sdk.model.registration.Account
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getBooleanSetting
(String name, Boolean required, Boolean defaultValue) Returns module subscription setting value as Boolean.getFloatSetting
(String name, Boolean required, Double defaultValue) Returns module subscription setting value as Double.getIntegerSetting
(String name, Boolean required, Integer defaultValue) Returns module subscription setting value as Integer.getStringSetting
(String name, Boolean required, String defaultValue) Returns module subscription setting value as String.setAccountId
(int accountId) setAccountSettings
(Map<String, String> accountSettings)
-
Constructor Details
-
Account
public Account()
-
-
Method Details
-
getAccountId
public int getAccountId()- Returns:
- subscription account id
-
setAccountId
- Parameters:
accountId
- subscription account id- Returns:
- this
-
getAccountSettings
- Returns:
- module subscription settings
-
setAccountSettings
- Parameters:
accountSettings
- module subscription settings- Returns:
- this
-
getStringSetting
public String getStringSetting(String name, Boolean required, String defaultValue) throws IllegalArgumentException Returns module subscription setting value as String.- Parameters:
name
- setting namerequired
- true - throws IllegalArgumentException if the setting is not founddefaultValue
- default value returned if setting is not found- Returns:
- setting value
- Throws:
IllegalArgumentException
-
getIntegerSetting
public Integer getIntegerSetting(String name, Boolean required, Integer defaultValue) throws IllegalArgumentException Returns module subscription setting value as Integer.- Parameters:
name
- setting namerequired
- true - throws IllegalArgumentException if the setting is not founddefaultValue
- default value returned if setting is not found- Returns:
- setting value
- Throws:
IllegalArgumentException
-
getFloatSetting
public Double getFloatSetting(String name, Boolean required, Double defaultValue) throws IllegalArgumentException Returns module subscription setting value as Double.- Parameters:
name
- setting namerequired
- true - throws IllegalArgumentException if the setting is not founddefaultValue
- default value returned if setting is not found- Returns:
- setting value
- Throws:
IllegalArgumentException
-
getBooleanSetting
public Boolean getBooleanSetting(String name, Boolean required, Boolean defaultValue) throws IllegalArgumentException Returns module subscription setting value as Boolean.- Parameters:
name
- setting namerequired
- true - throws IllegalArgumentException if the setting is not founddefaultValue
- default value returned if setting is not found- Returns:
- setting value
- Throws:
IllegalArgumentException
-