Direction - MessageOnTap/MessageOnTap_API GitHub Wiki

In a conversation, developers might care about whether a message is an incoming or outgoing one, which might trigger different moves.

Usage

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

Summary

Type

DataType Name
enum Direction

Fields

DataType Field
Direction INCOMING
Direction OUTGOING

Fields

INCOMING

Direction.INCOMING

Incoming Messages

OUTGOING

Direction.OUTGOING

Outgoing Messages

Direction contains three types: incoming, outgoing, and unknown.