Package com.mparticle
Class MPEvent
- java.lang.Object
-
- com.mparticle.BaseEvent
-
- com.mparticle.MPEvent
-
public class MPEvent extends BaseEvent
Class representation of an event.MPEvent
implements the Builder pattern, seeMPEvent.Builder
for more information.- See Also:
MParticle.logEvent(BaseEvent)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MPEvent.Builder
Class used to build anMPEvent
object.-
Nested classes/interfaces inherited from class com.mparticle.BaseEvent
BaseEvent.MessageType, BaseEvent.Type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getCategory()
int
getEventHash()
java.lang.String
getEventName()
MParticle.EventType
getEventType()
java.util.Map<java.lang.String,java.lang.String>
getInfo()
Deprecated.useBaseEvent.getCustomAttributes()
insteadjava.lang.Double
getLength()
com.mparticle.internal.messages.BaseMPMessageBuilder
getMessage()
boolean
isScreenEvent()
void
setCustomAttributes(java.util.Map<java.lang.String,java.lang.String> customAttributes)
void
setInfo(java.util.Map<java.lang.String,java.lang.String> info)
Deprecated.usesetCustomAttributes(Map)
insteadprotected MPEvent
setScreenEvent(boolean screenEvent)
java.lang.String
toString()
-
Methods inherited from class com.mparticle.BaseEvent
getCustomAttributes, getCustomFlags, getType, isShouldUploadEvent, setCustomFlags, setShouldUploadEvent, setType
-
-
-
-
Constructor Detail
-
MPEvent
public MPEvent(@NonNull MPEvent mpEvent)
-
-
Method Detail
-
equals
public boolean equals(@Nullable java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
setInfo
@Deprecated public void setInfo(@Nullable java.util.Map<java.lang.String,java.lang.String> info)
Deprecated.usesetCustomAttributes(Map)
instead- Parameters:
info
-
-
setCustomAttributes
public void setCustomAttributes(@Nullable java.util.Map<java.lang.String,java.lang.String> customAttributes)
- Overrides:
setCustomAttributes
in classBaseEvent
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getEventName
@NonNull public java.lang.String getEventName()
-
isScreenEvent
public boolean isScreenEvent()
-
setScreenEvent
protected MPEvent setScreenEvent(boolean screenEvent)
-
getEventHash
public int getEventHash()
-
getCategory
@Nullable public java.lang.String getCategory()
-
getInfo
@Deprecated @Nullable public java.util.Map<java.lang.String,java.lang.String> getInfo()
Deprecated.useBaseEvent.getCustomAttributes()
instead- Returns:
-
getEventType
@NonNull public MParticle.EventType getEventType()
-
getLength
@Nullable public java.lang.Double getLength()
-
getMessage
@NonNull public com.mparticle.internal.messages.BaseMPMessageBuilder getMessage()
- Overrides:
getMessage
in classBaseEvent
-
-