Class Event



  • public class Event
    extends java.lang.Object
    Definition of a tracked event. Used to send events in com.zopim.android.sdk.api.ChatService#sendEvents(Event...) via Zopim protocol.
    • Constructor Summary

      Constructors 
      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
    • 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 event
      java.lang.String getTitle()
      Gets title of the event
      int hashCode() 
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Event

        public Event(java.lang.String title)
        Constructs the Event with a passed title and generates a timestamp based on System.currentTimeMillis()
        Parameters:
        title - of the event
      • Event

        public Event(java.lang.String title,
                     long timestamp)
        Constructs the Event with a passed title and timestamp
        Parameters:
        title - of the event
        timestamp - 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object