There was an error while loading. Please reload this page.
In a conversation, developers might care about whether a message is an incoming or outgoing one, which might trigger different moves.
Mood.INCOMING
Incoming Messages
OUTGOING
Outgoing Messages
Direction contains three types: incoming, outgoing, and unknown.
Developers can get it in ParseTree.
Direction mDirection = parseTree.getDirection();
Developers can set Direction in a trigger.
Direction mDirection = Direction.INCOMING//Direction.OUTGOING; Trigger mTrigger = new Trigger(name, pluginMadatoryTags, pluginOptionalTags, constraints , mood, mDirection):
You can find the Trigger Constructer in following link: https://github.com/chentc/MessageOnTap/wiki/Trigger