SentMessage class

A message that was sent to TalkJS

Annotations
  • @JS()
  • @anonymous

Constructors

SentMessage()
factory

Properties

attachment ↔ dynamic
Only given if the message contains a file. An object with the URL and filesize (in bytes) of the given file. { url: string; size: number; }
getter/setter pair
conversationId String
The ID of the conversation that the message belongs to
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
The message ID of the message that was sent
getter/setter pair
location List<num>?
Only given if the message contains a location. An array of two numbers which represent the longitude and latitude of this location, respectively. Only given if this message is a shared location.
getter/setter pair
readBy List<String>
Contains an Array of {@link User.id}'s that have read the message
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
senderId String
Contains the user ID for the person that sent the message
getter/setter pair
text String?
Contains the message's text
getter/setter pair
type String
Identifies the message as either a {@link https://talkjs.com/docs/Reference/Concepts/Messages.html | User message} or {@link https://talkjs.com/docs/Reference/Concepts/System_Messages.html | System message} "UserMessage" | "SystemMessage"
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited