Class Message

java.lang.Object
com.mparticle.sdk.model.Message
Direct Known Subclasses:
AudienceMembershipChangeRequest, AudienceMembershipChangeResponse, AudienceSubscriptionRequest, AudienceSubscriptionResponse, DsrProcessingRequest, DsrProcessingResponse, EventProcessingRequest, EventProcessingResponse, ModuleRegistrationRequest, ModuleRegistrationResponse

public abstract class Message extends Object
  • Constructor Details

    • Message

      public Message(Message.Type type)
      Creates a new message.
      Parameters:
      type - message type
  • Method Details

    • getType

      public Message.Type getType()
      Returns:
      message type
    • getId

      public UUID getId()
      Returns:
      message id
    • getTimestamp

      public long getTimestamp()
      Returns:
      time in milliseconds
    • setTimestamp

      public void setTimestamp(long timestamp)
      Parameters:
      timestamp - time in milliseconds
    • getFirehoseVersion

      public String getFirehoseVersion()
      Returns:
      version of the Firehose SDK used to handle this message. Required as of version 2.0
    • setFirehoseVersion

      public void setFirehoseVersion(String firehoseVersion)
      Parameters:
      firehoseVersion - version of the Firehose SDK used to handle this message. Required as of version 2.0