MessageAgent

class MessageAgent(    client: MessageClient,     ttsScenarioPlayer: TTSScenarioPlayer,     contextStateProviderRegistry: ContextStateProviderRegistry,     contextGetter: ContextGetterInterface,     messageSender: MessageSender,     directiveSequencer: DirectiveSequencerInterface,     interactionControlManager: InteractionControlManagerInterface) : CapabilityAgent, MessageAgentInterface, SupportedInterfaceContextProvider, SendCandidatesDirectiveHandler.AgentController, SendMessageDirectiveHandler.Controller, GetMessageDirectiveHandler.Controller

Constructors

Link copied to clipboard
fun MessageAgent(    client: MessageClient,     ttsScenarioPlayer: TTSScenarioPlayer,     contextStateProviderRegistry: ContextStateProviderRegistry,     contextGetter: ContextGetterInterface,     messageSender: MessageSender,     directiveSequencer: DirectiveSequencerInterface,     interactionControlManager: InteractionControlManagerInterface)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class StateContext(    context: Context,     readActivity: TTSAgentInterface.State,     token: String?) : BaseContextState

Functions

Link copied to clipboard
open override fun addOnPlaybackListener(listener: MessageAgentInterface.OnPlaybackListener)
Link copied to clipboard
open override fun getMessageList(payload: GetMessagePayload, callback: GetMessageDirectiveHandler.Callback)
Link copied to clipboard
open override fun provideState(    contextSetter: ContextSetterInterface,     namespaceAndName: NamespaceAndName,     contextType: ContextType,     stateRequestToken: Int)
Link copied to clipboard
open override fun removeOnPlaybackListener(listener: MessageAgentInterface.OnPlaybackListener)
Link copied to clipboard
open override fun sendCandidates(payload: SendCandidatesPayload, callback: SendCandidatesDirectiveHandler.AgentCallback)
Link copied to clipboard
open override fun sendMessage(payload: SendMessagePayload, callback: EventCallback)

Properties

Link copied to clipboard
open override val namespaceAndName: NamespaceAndName