Skip to content

Direction

Mars edited this page Jul 31, 2017 · 25 revisions

Introduction

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

Fields

INCOMING

Mood.INCOMING

Incoming Messages

OUTGOING

OUTGOING

Outgoing Messages

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

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

Clone this wiki locally