-
Notifications
You must be signed in to change notification settings - Fork 6
Direction
Mars edited this page Aug 1, 2017
·
25 revisions
In a conversation, developers might care about whether a message is an incoming or outgoing one, which might trigger different moves.
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
| DataType | Name |
|---|---|
| enum | Direction |
| DataType | Field |
|---|---|
| Direction | INCOMING |
| Direction | OUTGOING |
Direction.INCOMING
Incoming Messages
Direction.OUTGOING
Outgoing Messages
Direction contains three types: incoming, outgoing, and unknown.
2017 MessageOnTap