UikitBaseMessage

Properties

Link copied to clipboard
abstract val createdAt: Long

The created timestamp of the message.

Link copied to clipboard

Checks if the UikitBaseMessage is sent by the current user.

Link copied to clipboard
abstract val isResendable: Boolean

The flag that indicates whether the message is resendable.

Link copied to clipboard
abstract val message: String

The message of the message.

Link copied to clipboard
abstract val messageId: Long

The message id of the message. This is set when the message is sent successfully.

Link copied to clipboard
abstract val requestId: String

The request id of the message. This is used to identify the message when the message is not sent yet (sendingStatus != SendingStatus.SUCCEEDED)

Link copied to clipboard
abstract val sender: UikitSender?

The sender of the message.

Link copied to clipboard
abstract val sendingStatus: <Error class: unknown class>

The sending status of the message.

Link copied to clipboard

The undelivered member count of the message.

Link copied to clipboard
open val uniqueId: String

The unique id of the message. This is set to messageId if the message is sent successfully, otherwise requestId.

Link copied to clipboard
abstract val unreadMemberCount: Int

The unread member count of the message.

Link copied to clipboard
abstract val updatedAt: Long

The updated timestamp of the message.

Functions

Link copied to clipboard

Returns the last message's display message to be shown in the channel list.

Link copied to clipboard

Returns the message grouping position based on the previous and next messages. If the message is not sent successfully, it returns MessageGroupingPosition.Single. If the message is the head of the group, it returns MessageGroupingPosition.Head. If the message is the tail of the group, it returns MessageGroupingPosition.Tail. If the message is the only message in the group, it returns MessageGroupingPosition.Single.

Link copied to clipboard

Returns the nickname of the sender or the unknown text if the sender is null.

Link copied to clipboard

Returns the profile url of the sender or an empty string if the sender is null.

Link copied to clipboard

Returns the sent time of the message in date time format.

Link copied to clipboard

Returns the MessageType based on the message.

Link copied to clipboard

Returns the text for the unknown message type.