Skip to content

TriggerFactory

Courtney-Clarkson edited this page Apr 1, 2020 · 3 revisions

TriggerFactory

The detailed class design of TriggerFactory. This class is used to create a new trigger from pure TriggerData.

Methods


static createTriggersFromData(triggerDatas: TriggerData[])

Description

The method createTriggersFromData creates a new array of triggers generated from the given trigger data list.

Parameters

data: An array of pure trigger data.

Return Value

A array of Trigger object.



static createTriggerFromData(triggerDatas: TriggerData[])

Description

The method createTriggersFromData creates a single trigger generated from the given trigger data.

Parameters

data: Pure trigger data used to create a new trigger.

Return Value

A Trigger object whose value of each properties equals to the corresponding field passed in the TriggerData object.