Companion

object Companion

Functions

Link copied to clipboard
fun belongsTo(message: BaseMessage?, user: User?): Boolean

Checks whether the sender's userId of the BaseMessage equals the given user's id.

fun belongsTo(message: BaseMessage?, userId: String): Boolean

Checks whether the sender's userId of the BaseMessage equals the given userId.

Link copied to clipboard

Builds UserMessage, FileMessage or AdminMessage instance from serialized data generated by serialize.

Link copied to clipboard

Clones and returns a new instance of given BaseMessage

Link copied to clipboard

Retrieves a BaseMessage object with a specified message ID.

Link copied to clipboard

Retrieves a BaseMessage object with a specified scheduled message ID.