Package com.mparticle.sdk.model
Class Message
java.lang.Object
com.mparticle.sdk.model.Message
- Direct Known Subclasses:
AudienceMembershipChangeRequest
,AudienceMembershipChangeResponse
,AudienceSubscriptionRequest
,AudienceSubscriptionResponse
,DsrProcessingRequest
,DsrProcessingResponse
,EventProcessingRequest
,EventProcessingResponse
,ModuleRegistrationRequest
,ModuleRegistrationResponse
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
long
getType()
void
setFirehoseVersion
(String firehoseVersion) void
setTimestamp
(long timestamp)
-
Constructor Details
-
Message
Creates a new message.- Parameters:
type
- message type
-
-
Method Details
-
getType
- Returns:
- message type
-
getId
- Returns:
- message id
-
getTimestamp
public long getTimestamp()- Returns:
- time in milliseconds
-
setTimestamp
public void setTimestamp(long timestamp) - Parameters:
timestamp
- time in milliseconds
-
getFirehoseVersion
- Returns:
- version of the Firehose SDK used to handle this message. Required as of version 2.0
-
setFirehoseVersion
- Parameters:
firehoseVersion
- version of the Firehose SDK used to handle this message. Required as of version 2.0
-