public class Event
extends java.lang.Object
ChatService.sendEvents(Event...)
via Zopim protocol.Constructor and Description |
---|
Event(java.lang.String title)
Constructs the
Event with a passed title and generates a timestamp based on System.currentTimeMillis() |
Event(java.lang.String title,
long timestamp)
Constructs the
Event with a passed title and timestamp |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
long |
getTimestamp()
Gets timestamp of the event
|
java.lang.String |
getTitle()
Gets title of the event
|
int |
hashCode() |
java.lang.String |
toString() |
public Event(java.lang.String title)
Event
with a passed title and generates a timestamp based on System.currentTimeMillis()
title
- of the eventpublic Event(java.lang.String title, long timestamp)
Event
with a passed title and timestamptitle
- of the eventtimestamp
- time of the eventpublic java.lang.String getTitle()
public long getTimestamp()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object