public interface Payload
| Modifier and Type | Method and Description |
|---|---|
void |
add(String key,
Object value)
Add a basic parameter.
|
void |
add(String key,
String value)
Add a basic parameter.
|
void |
addMap(Map<String,Object> map)
Add all the mappings from the specified map.
|
void |
addMap(Map map,
Boolean base64_encoded,
String type_encoded,
String type_no_encoded)
Add a map to the Payload with a key dependent on the base 64 encoding option you choose using the
two keys provided.
|
long |
getByteSize()
Returns the byte size of a payload.
|
Map |
getMap()
Returns the Payload as a HashMap.
|
String |
toString()
Returns the Payload as a string.
|
void add(@NonNull
String key,
@Nullable
String value)
key - The parameter keyvalue - The parameter value as a Stringvoid add(@NonNull
String key,
@Nullable
Object value)
key - The parameter keyvalue - The parameter valuevoid addMap(@NonNull
Map<String,Object> map)
map - Mappings to be stored in this mapvoid addMap(@NonNull
Map map,
@NonNull
Boolean base64_encoded,
@Nullable
String type_encoded,
@Nullable
String type_no_encoded)
map - Mapping to be storedbase64_encoded - The option you choose to encode the datatype_encoded - The key that would be set if the encoding option was set to truetype_no_encoded - They key that would be set if the encoding option was set to false@NonNull Map getMap()
@NonNull String toString()
long getByteSize()