AI-generated Key Takeaways
-
The cast.framework.messages.QueueChange class represents a queue change message for actions like insert, remove, or update.
-
Key properties include
changeTypeto indicate the type of change anditemIdswhich lists the IDs of changed items. -
insertBeforespecifies the ID before which inserted items will be placed. -
reorderItemIdsis used specifically forQUEUE_REORDERresponses and contains the list of reordered item IDs. -
Properties like
requestIdandsequenceNumberare used for coordinating state and tracking requests.
cast.framework.messages. QueueChange
Represents a queue change message, such as insert, remove, and update.
Constructor
QueueChange
new QueueChange()
Properties
changeType
(non-null cast.framework.messages.QueueChangeType or undefined)
The actual queue change type.
insertBefore
(number or undefined)
The ID that the inserted items will precede.
itemIds
(non-null Array of number or undefined)
The list of changed item IDs.
reorderItemIds
(non-null Array of number or undefined)
The list of reordered item IDs. This is only used as a response for a
QUEUE_REORDER request. The changeType becomes UPDATE, and itemIds
contain the full list of queue items.
requestId
(number or undefined)
The corresponding request ID.
sequenceNumber
(number or undefined)
The queue change sequence ID. Used to coordinate state sync between various senders and the receiver.
type
non-null cast.framework.messages.MessageType