MessageAuthor

abstract class MessageAuthor

Author of a given Message. This field is backed by, or rather converted from, different implementations depending on the Message.direction or possibly other factors.

If the message doesn't provide an actor(author), default values will be used. These default values are thereafter the identical for the lifetime of the process. Do not rely on the stability of IDs for an example after the process finishes.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val firstName: String

First name of the given actor.

Link copied to clipboard
abstract val id: String

The id of an author. Converted implementations can have different implementations for ids, though they are all converted to string for convenience.

Link copied to clipboard
abstract val imageUrl: String?

Optional URI with avatar image of message author.

Link copied to clipboard
abstract val lastName: String

Last name of the given actor.

Link copied to clipboard

Merges firstName and lastName in this order, separated by a space. If both values are empty, then returns an empty string.