public abstract class

ChatMessage

extends Object
java.lang.Object
   ↳ com.glia.androidsdk.chat.ChatMessage
Known Direct Subclasses

Class Overview

Contains Chat message information.

Summary

Public Methods
MessageAttachment getAttachment()
Message attachment.
String getContent()
Content of the message
String getId()
Identifier of the message.
Chat.Participant getSender()
Sender type, see Chat.Participant for possible options
long getTimestamp()
Timestamp of when message was received by server in milliseconds
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public MessageAttachment getAttachment ()

Message attachment. If no attachment is present, then it is `null`. See MessageAttachment for more.

public String getContent ()

Content of the message

public String getId ()

Identifier of the message. This identifier can be used to track a single message's status updates through time and to avoid re-rendering the entire list of messages when the status of only a single message has changed.

public Chat.Participant getSender ()

Sender type, see Chat.Participant for possible options

public long getTimestamp ()

Timestamp of when message was received by server in milliseconds