PROTOCOL
PollingModel
public protocol PollingModel: UIInteractionModel
A polling model that contains a primary [mainAction] that is executed every [autoPollingDuration] and an optional [cancelAction] to interrupt the polling execution.
Properties
messageItems
var messageItems: [InfoMessageModel]
A list of InfoMessageModel.
mainAction
var mainAction: InteractionItemModel
An InteractionItemButtonModel instance that represents the main action of the polling.
cancelAction
var cancelAction: InteractionItemModel?
An optional InteractionItemButtonModel instance that represents the cancellation action of the polling.
autoPollingDuration
var autoPollingDuration: TimeInterval
The value indicating how long auto-polling will wait between executions of the main action.
status
var status: PollingStatus
The value indicating the current status of the polling
linkItems
var linkItems: [LinkItemModel]
A list of LinkItemModel instances representing optional flow actions.
Methods
isEqualTo(_:)
func isEqualTo(_ other: PollingModel) -> Bool
Compares two instances of PollingModel.
- Parameters:
- other: the comparison target.
 
 - Returns: A Bool value indicating if the two instances are equal.
 
Parameters
| Name | Description | 
|---|---|
| other | the comparison target. |