-
Notifications
You must be signed in to change notification settings - Fork 1
TriggerFactory
Courtney-Clarkson edited this page Apr 1, 2020
·
3 revisions
The detailed class design of TriggerFactory. This class is used to create a new trigger from pure TriggerData.
static createTriggersFromData(triggerDatas: TriggerData[])
The method createTriggersFromData creates a new array of triggers generated from the given trigger data list.
data: An array of pure trigger data.
A array of Trigger object.
static createTriggerFromData(triggerDatas: TriggerData[])
The method createTriggersFromData creates a single trigger generated from the given trigger data.
data: Pure trigger data used to create a new trigger.
A Trigger object whose value of each properties equals to the corresponding field passed in the TriggerData object.