Conversation.
Static methods
staticcreate(instanceId:String, topic:String):Conversation
Creates a new conversation, linked to the given instanceId
, and with the
specified topic
.
Returns:
The created Conversation.
staticget(id:String):Conversation
Returns:
The Conversation with the given id, or null
if it was not found.
staticlist(filters:Query):Collection<Conversation>
Lists conversations.
Returns:
A collection of Conversations.
Constructor
Variables
instanceId:String
The id of object based on which discussion is made, e.g. listing request. It can be any object.
Methods
createMessage(text:String):Message
Creates a new message in this
Conversation with the given text
, as long as the text
is not the same as the one in the last Message
.
Returns:
The created Message
, or null
if the last message in the Conversation
is
the same as this one.