Class Event
- java.lang.Object
-
- com.zopim.android.sdk.breadcrumbs.Event
-
public class Event extends java.lang.Object
Definition of a tracked event. Used to send events incom.zopim.android.sdk.api.ChatService#sendEvents(Event...)
via Zopim protocol.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
equals(java.lang.Object o)
long
getTimestamp()
Gets timestamp of the eventjava.lang.String
getTitle()
Gets title of the eventint
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Event
public Event(java.lang.String title)
Constructs theEvent
with 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 theEvent
with 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-