Class Event
- java.lang.Object
-
- com.zopim.android.sdk.breadcrumbs.Event
-
public class Event extends java.lang.ObjectDefinition of a tracked event. Used to send events inChatService.sendEvents(Event...)via Zopim protocol.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)longgetTimestamp()Gets timestamp of the eventjava.lang.StringgetTitle()Gets title of the eventinthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
Event
public Event(java.lang.String title)
Constructs theEventwith a passed title and generates a timestamp based onSystem.currentTimeMillis()- Parameters:
title- of the event
-
Event
public Event(java.lang.String title, long timestamp)Constructs theEventwith a passed title and timestamp- Parameters:
title- of the eventtimestamp- time of the event
-
-
Method Detail
-
getTitle
public java.lang.String getTitle()
Gets title of the event- Returns:
- title of the event
-
getTimestamp
public long getTimestamp()
Gets timestamp of the event- Returns:
- timestamp of the event
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-