java.lang.Object
com.mparticle.sdk.model.eventprocessing.Event
Direct Known Subclasses:
ApplicationStateTransitionEvent, AttributionEvent, CustomEvent, ErrorEvent, ImpressionEvent, PrivacySettingChangeEvent, ProductActionEvent, PromotionActionEvent, PushMessageOpenEvent, PushMessageReceiptEvent, PushSubscriptionEvent, ScreenViewEvent, SessionEndEvent, SessionStartEvent, UserAttributeChangeEvent, UserIdentityChangeEvent

public abstract class Event extends Object
  • Constructor Details

  • Method Details

    • getType

      public Event.Type getType()
      Returns:
      event type
    • getId

      public UUID getId()
      Returns:
      event id
    • getTimestamp

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

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

      public String getSourceId()
      Returns:
      source event id
    • setSourceId

      public void setSourceId(String sourceId)
      Parameters:
      sourceId - source event id
    • getSessionId

      public Long getSessionId()
      Returns:
      session id
    • setSessionId

      public void setSessionId(Long sessionId)
      Parameters:
      sessionId - session id
    • getLocation

      public Location getLocation()
      Returns:
      Geo location
    • setLocation

      public void setLocation(Location location)
      Parameters:
      location - Geo location
    • getRequest

      public EventProcessingRequest getRequest()
    • setRequest

      public void setRequest(EventProcessingRequest request)