Class Account

java.lang.Object
com.mparticle.sdk.model.registration.Account

public final class Account extends Object
  • Constructor Details

    • Account

      public Account()
  • Method Details

    • getAccountId

      public int getAccountId()
      Returns:
      subscription account id
    • setAccountId

      public Account setAccountId(int accountId)
      Parameters:
      accountId - subscription account id
      Returns:
      this
    • getAccountSettings

      public Map<String,String> getAccountSettings()
      Returns:
      module subscription settings
    • setAccountSettings

      public Account setAccountSettings(Map<String,String> accountSettings)
      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 name
      required - true - throws IllegalArgumentException if the setting is not found
      defaultValue - 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 name
      required - true - throws IllegalArgumentException if the setting is not found
      defaultValue - 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 name
      required - true - throws IllegalArgumentException if the setting is not found
      defaultValue - 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 name
      required - true - throws IllegalArgumentException if the setting is not found
      defaultValue - default value returned if setting is not found
      Returns:
      setting value
      Throws:
      IllegalArgumentException