CAIChannelMenuDataAction

public struct CAIChannelMenuDataAction : Decodable
extension CAIChannelMenuDataAction: MenuAction

Holds model for a channel menu call to actions

  • Initializer

    Declaration

    Swift

    public init(_ title: String, _ type: String, _ payload: String?, _ callToActions: [CAIChannelMenuDataAction]?)

Conformance to MenuAction protocol

  • action id

    Declaration

    Swift

    public var actionId: String { get }
  • menu title

    Declaration

    Swift

    public var menuTitle: String { get }
  • action type

    Declaration

    Swift

    public var actionType: MenuActionType { get }
  • payload

    Declaration

    Swift

    public var value: String? { get }
  • nested menu actions

    Declaration

    Swift

    public var menuActions: [MenuAction]? { get }