Package com.mparticle
Class MPEvent
- java.lang.Object
-
- com.mparticle.BaseEvent
-
- com.mparticle.MPEvent
-
public class MPEvent extends BaseEvent
Class representation of an event.MPEventimplements the Builder pattern, seeMPEvent.Builderfor more information.- See Also:
MParticle.logEvent(BaseEvent)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMPEvent.BuilderClass used to build anMPEventobject.-
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 booleanequals(java.lang.Object o)java.lang.StringgetCategory()intgetEventHash()java.lang.StringgetEventName()MParticle.EventTypegetEventType()java.util.Map<java.lang.String,java.lang.String>getInfo()Deprecated.useBaseEvent.getCustomAttributes()insteadjava.lang.DoublegetLength()com.mparticle.internal.messages.BaseMPMessageBuildergetMessage()booleanisScreenEvent()voidsetCustomAttributes(java.util.Map<java.lang.String,java.lang.String> customAttributes)voidsetInfo(java.util.Map<java.lang.String,java.lang.String> info)Deprecated.usesetCustomAttributes(Map)insteadprotected MPEventsetScreenEvent(boolean screenEvent)java.lang.StringtoString()-
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:
equalsin 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:
setCustomAttributesin classBaseEvent
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toStringin 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:
getMessagein classBaseEvent
-
-