ChatThreadMessageHandler
Manages all the necessary procedures required for service messages. This newly created object influences changes in parent ChatThreadHandler in number of ways. Though it does not modify the parent directly, it can force some events to happen which in-turn update the data.
It has no side effects attached to it.
Types
Listener allows receiving of transfer notifications.
Listener for simple inline id notifications.
Functions
Notifies server that we need to load more messages. This expects that the instance provided by parent ChatThreadHandler has the most up-to-date data. Be warned that calling this method on a thread that has not been updated has undefined consequences. It can result, for example, in message duplication.
Sends a message and optionally notifies the client about the message being processed or sent.
Simplified method to send a simple user message to the agent.
Simplified method to send an attachment to the agent.