public class AppConfig
extends java.lang.Object
| Constructor and Description |
|---|
AppConfig(JSONObject config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(java.lang.String name,
boolean optValue)
Returns a boolean for the specified property.
|
java.lang.Double |
getDouble(java.lang.String name,
java.lang.Double optValue)
Returns a Double for the specified property.
|
java.lang.Integer |
getInt(java.lang.String name,
java.lang.Integer optValue)
Returns an Int for the specified property.
|
java.lang.Number |
getNumber(java.lang.String name,
java.lang.Double optValue)
Returns an Number for the specified property.
|
java.lang.String |
getString(java.lang.String name,
java.lang.String optValue)
Returns a Number for the specified property.
|
public java.lang.String getString(java.lang.String name,
java.lang.String optValue)
name - The name of the property, as specified on the server by the mobile backend.optValue - The value returned if the property is not specified.public java.lang.Integer getInt(java.lang.String name,
java.lang.Integer optValue)
name - The name of the property, as specified on the server by the mobile backend.optValue - The value returned if the property is not specified.public java.lang.Double getDouble(java.lang.String name,
java.lang.Double optValue)
name - The name of the property, as specified on the server by the mobile backend.optValue - The value returned if the property is not specified.public java.lang.Number getNumber(java.lang.String name,
java.lang.Double optValue)
name - The name of the property, as specified on the server by the mobile backend.optValue - The value returned if the property is not specified.public boolean getBoolean(java.lang.String name,
boolean optValue)
name - The name of the property, as specified on the server by the mobile backend.optValue - The value returned if the property is not specified.