SubscriptionListAction

Action for subscribing/unsubscribing to lists.

Accepted situations: all

Accepted argument value types: A JSON Payload containing a type, a list, an action and a scope.

An example JSON Payload :
[
{
"type": "contact",
"action": "subscribe",
"list": "mylist",
"scope": "app"
},
{
"type": "channel",
"action": "unsubscribe",
"list": "thelist"
}
]

Result value: The payload used.

Default Registration Names: DEFAULT_NAMES

Default Registration Predicate: none

Constructors

Link copied to clipboard
constructor()

Default constructor.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun acceptsArguments(arguments: ActionArguments): Boolean

Called before an action is performed to determine if the the action can accept the arguments.

Link copied to clipboard
open override fun perform(arguments: ActionArguments): ActionResult

Performs the action.

Inherited functions

Link copied to clipboard
open fun onFinish(arguments: ActionArguments, result: ActionResult)

Called after the action performs.

Link copied to clipboard
open fun onStart(arguments: ActionArguments)

Called before an action is performed.

Link copied to clipboard

Performs the action, with pre/post execution calls, if it accepts the provided arguments.

Link copied to clipboard

Determines which thread runs the action.