Channel¶
-
public class
Channel
¶ Represents a single task channel. Channel contains the list of triggers from the given module and the list of actions that can be taken by that module.
Constructors¶
Channel¶
Channel¶
-
public
Channel
(String displayName, String moduleName, String moduleVersion, String description, List<TriggerEvent> triggerTaskEvents, List<ActionEvent> actionTaskEvents)¶ Constructor.
Parameters: - displayName – the channel display name
- moduleName – the channel module name
- moduleVersion – the module version
- description – the channel description
- triggerTaskEvents – the list of events for provided triggers
- actionTaskEvents – the list of events for provided actions
Methods¶
addActionTaskEvent¶
-
public void
addActionTaskEvent
(ActionEvent actionEvent)¶
containsAction¶
-
public boolean
containsAction
(TaskActionInformation actionInformation)¶
getAction¶
-
public ActionEvent
getAction
(TaskActionInformation actionInformation)¶
getActionTaskEvents¶
-
public List<ActionEvent>
getActionTaskEvents
()¶
getTriggerTaskEvents¶
-
public List<TriggerEvent>
getTriggerTaskEvents
()¶
setActionTaskEvents¶
-
public void
setActionTaskEvents
(List<ActionEvent> actionTaskEvents)¶
setTriggerTaskEvents¶
-
public void
setTriggerTaskEvents
(List<TriggerEvent> triggerTaskEvents)¶
toDto¶
-
public ChannelDto
toDto
()¶