public final class AppboyProperties extends java.lang.Object implements IPutIntoJson<org.json.JSONObject>
Constructor and Description |
---|
AppboyProperties() |
AppboyProperties(org.json.JSONObject jsonObject)
Creates an AppboyProperties object using jsonObject.
|
Modifier and Type | Method and Description |
---|---|
AppboyProperties |
addProperty(java.lang.String key,
boolean value)
Adds a key-value property pair to this AppboyProperties object.
|
AppboyProperties |
addProperty(java.lang.String key,
java.util.Date value)
Adds a key-value property pair to this AppboyProperties object.
|
AppboyProperties |
addProperty(java.lang.String key,
double value)
Adds a key-value property pair to this AppboyProperties object.
|
AppboyProperties |
addProperty(java.lang.String key,
int value)
Adds a key-value property pair to this AppboyProperties object.
|
AppboyProperties |
addProperty(java.lang.String key,
long value)
Adds a key-value property pair to this AppboyProperties object.
|
AppboyProperties |
addProperty(java.lang.String key,
java.lang.String value)
Adds a key-value property pair to this AppboyProperties object.
|
protected boolean |
containsProperty(java.lang.String key) |
org.json.JSONObject |
forJsonPut() |
protected java.lang.Object |
get(java.lang.String key) |
protected java.lang.Object |
removeProperty(java.lang.String key) |
int |
size() |
public AppboyProperties()
public AppboyProperties(org.json.JSONObject jsonObject)
jsonObject
- object to create the AppboyProperties frompublic AppboyProperties addProperty(java.lang.String key, long value)
key
- Property keys are non-empty strings <= 255 characters, with no leading dollar signs.
Strings of length > 255 characters will be truncated.value
- long property value.public AppboyProperties addProperty(java.lang.String key, int value)
key
- Property keys are non-empty strings <= 255 characters, with no leading dollar signs.
Strings of length > 255 characters will be truncated.value
- integer property value.public AppboyProperties addProperty(java.lang.String key, double value)
key
- Property keys are non-empty strings <= 255 characters, with no leading dollar signs.
Strings of length > 255 characters will be truncated.value
- double property value.public AppboyProperties addProperty(java.lang.String key, boolean value)
key
- Property keys are non-empty strings <= 255 characters, with no leading dollar signs.
Strings of length > 255 characters will be truncated.value
- boolean property value.public AppboyProperties addProperty(java.lang.String key, java.util.Date value)
key
- Property keys are non-empty strings <= 255 characters, with no leading dollar signs.
Strings of length > 255 characters will be truncated.value
- Date property value, required to be non-null.public AppboyProperties addProperty(java.lang.String key, java.lang.String value)
key
- Property keys are non-empty strings <= 255 characters, with no leading dollar signs.
Strings of length > 255 characters will be truncated.value
- String property value, should be <= 255 characters and not null.
Strings of length > 255 characters will be truncated.public int size()
protected boolean containsProperty(java.lang.String key)
protected java.lang.Object removeProperty(java.lang.String key)
protected java.lang.Object get(java.lang.String key)
public org.json.JSONObject forJsonPut()
forJsonPut
in interface IPutIntoJson<org.json.JSONObject>