public class AppboyProperties extends java.lang.Object implements IPutIntoJson<org.json.JSONObject>
Metadata is stored as properties represented by key-value pairs.
Property keys are non-empty strings <= 255 characters, with no leading dollar signs. Property values are be integers, doubles, booleans, java.util.Date objects, or strings <= 255 characters. All strings of length > 255 characters will be truncated.
| Constructor and Description | 
|---|
| AppboyProperties() | 
| AppboyProperties(org.json.JSONObject jsonObject)Creates an AppboyProperties object using JSON. | 
| 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) | 
| boolean | isInvalid()To be valid, this object must be
 below  Constants.EVENT_PROPERTIES_MAX_SIZE_BYTESwhen
 converted to JSON viaforJsonPut(). | 
| protected java.lang.Object | removeProperty(java.lang.String key) | 
| int | size() | 
public AppboyProperties()
public AppboyProperties(org.json.JSONObject jsonObject)
forJsonPut() form.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()
public boolean isInvalid()
Constants.EVENT_PROPERTIES_MAX_SIZE_BYTES when
 converted to JSON via forJsonPut().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>