Trigger

Trigger

Represent Trigger

Constructor

new Trigger(Predicate, Definition, Details)

Create a Trigger.
Parameters:
Name Type Description
Predicate Predicate of the condition met for the trigger to execute.
Definition Command of the command to execute.
Details ServerCode of the server code to execute.
Properties:
Name Type Description
triggerID string ID of trigger.
predicate Predicate Predicate of the condition met for the trigger to execute.
command Command Definition of the command to execute.
serverCode ServerCode Details of the server code to execute.
disabled boolean Whether the trigger is disabled or not.
disabledReason string Reasons for disabled trigger
title string Title of the trigger
description string Description of the trigger
metadata Object Metadata of the trigger

Members

triggersWhat

Gets the string represented TriggersWhat

Methods

(static) fromJson(obj) → {Trigger}

This method is for internal use only.
Parameters:
Name Type Description
obj JSON object that represented a trigger.
Returns:
Trigger instance
Type
Trigger