STRUCT

SelectorAction

Contents

public struct SelectorAction: Action

Selector actions instruct a client to display a list of alternative options to the user.

Properties

kind

public let kind: ActionKind

title

public let title: Message?

model

public let model: SelectorActionModel

The action model.

properties

public let properties: Properties?

The action properties.

Methods

init(from:)

public init(from decoder: Decoder) throws

Parameters

Name Description
decoder The decoder to read data from.

encode(to:)

public func encode(to encoder: Encoder) throws

Parameters

Name Description
encoder The encoder to write data to.

==(::)

public static func == (lhs: SelectorAction, rhs: SelectorAction) -> Bool

Parameters

Name Description
lhs A value to compare.
rhs Another value to compare.