public class ClientDelivery extends Object
Constructor and Description |
---|
ClientDelivery() |
Modifier and Type | Method and Description |
---|---|
void |
addMessage(org.json.JSONObject message)
Adds an individual message to this delivery.
|
boolean |
isValidMessage(org.json.JSONObject message)
Returns true if the given JSONObject appears to be a valid Mixpanel message, created with #
MessageBuilder . |
public void addMessage(org.json.JSONObject message)
message
- a JSONObject produced by #MessageBuilder
. Arguments not from MessageBuilder will throw an exception.MixpanelMessageException
- if the given JSONObject is not formatted appropriately.MessageBuilder
public boolean isValidMessage(org.json.JSONObject message)
MessageBuilder
.message
- a JSONObject to be testedCopyright © 2019. All rights reserved.