PapercupsMessage class
This class is the class used for each message on the chat.
Constructors
Properties
- accountId ↔ String?
-
The account ID in the Papercups syetem. Should match the one given in the definition.
getter/setter pair
-
attachments
↔ List<
PapercupsAttachment> ? -
the metadata of files attached
getter/setter pair
- body ↔ String?
-
The body of the message (the text), may contain markdown.
getter/setter pair
- conversationId ↔ String?
-
The ID of the conversation used to identify the room that the message originated from.
getter/setter pair
- createdAt ↔ DateTime?
-
The date the message what created.
getter/setter pair
- customer ↔ PapercupsCustomer?
-
The customer which sent the message. Is nullable if the person sending is an agent.
getter/setter pair
- customerId ↔ String?
-
getter/setter pair
-
fileIds
↔ List<
String> ? -
The file ids of files to be sent, could be null if message does not contain files
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seenAt ↔ DateTime?
-
The date the message was seen.
getter/setter pair
- sentAt ↔ DateTime?
-
The date the message was sent.
getter/setter pair
- user ↔ User?
-
The user which sent the message. Is nullable if the person sending is a customer.
getter/setter pair
- userId ↔ int?
-
The userID of the person sending. Is nullable is the person sending is a customer.
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