Mood - MessageOnTap/MessageOnTap_API GitHub Wiki

We describe the speaker's tone in a sentence as Mood. Developers might care about if the sentence in a conversation is interrogative or not.

Examples:

Interrogative Mood

Imperative Mood

Usage

Developers can get Mood in a ParseTree:

Mood mMood = parseTree.getMood();

Developers can set Direction in a trigger.

Mood mMood = Mood.INTERROGTIVE//Mood.IMPERATIVE;
Trigger mTrigger = new Trigger(name, pluginMadatoryTags, pluginOptionalTags
            , constraints
            , mMood, direction):

Summary

Type

DataType Name
enum Mood

Fields

DataType Field
Mood IMPERATIVE
Mood INTERROGTIVE
Mood OTHER

Fields

IMPERATIVE

Mood.IMPERATIVE

Imperative mood in a message

INTERROGTIVE

Mood.OUTGOING

Interrogtive mood in a message

OTHER

Mood.OTHER

Other moods (Statement...) in a message