Class ChatLog



  • public class ChatLog
    extends java.lang.Object
    Describes the event of a message in the chat.
    See Also:
    ChatState.getChatLogs().
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  ChatLog.Type
      Defines the type of a chat log.
      static class  ChatLog.UserRole
      Describes the role of the user.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object o) 
      Attachment getAttachment()
      Returns an attachment if this chat log describes a message with an attachment or null if it does not.
      DeliveryStatus getDeliveryStatus()
      Returns the delivery status of this chat log.
      java.lang.String getDisplayName()
      Returns the display name of the user who sent this chat log.
      java.lang.String getId()
      Returns the identifier of this chat log.
      java.lang.String getMessage()
      Returns the text of the message if this chat log describes a message or null if it does not.
      long getTimestamp()
      Returns the timestamp at which this chat log was last updated, in ms.
      ChatLog.Type getType()
      Returns the type of this chat log.
      java.lang.String getUserId()
      Returns the identifier of the user who sent this chat log.
      ChatLog.UserRole getUserRole()
      Returns the role of the user who sent this chat log.
      int hashCode() 
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getId

        public java.lang.String getId()
        Returns the identifier of this chat log.
      • getTimestamp

        public long getTimestamp()
        Returns the timestamp at which this chat log was last updated, in ms.
      • getDisplayName

        public java.lang.String getDisplayName()
        Returns the display name of the user who sent this chat log.
      • getMessage

        public java.lang.String getMessage()
        Returns the text of the message if this chat log describes a message or null if it does not.
        See Also:
        ChatLog.getType()
      • getAttachment

        public Attachment getAttachment()
        Returns an attachment if this chat log describes a message with an attachment or null if it does not.
        See Also:
        ChatLog.getType()
      • 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