@Immutable public class QueueData extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
QueueData.QueueType
Types of media container/queue.
|
| Modifier and Type | Field and Description |
|---|---|
protected ContainerMetadata |
containerMetadata
Metadata to describe the queue content, and optionally media sections
|
protected String |
description
Description of the queue
|
protected String |
entity
Optional Queue entity ID, provide Google Assistant deep link
|
protected String |
id
ID of the queue
|
protected List<QueueItem> |
items
List of queue items.
|
protected String |
name
Name of the queue
|
protected QueueData.QueueType |
queueType
Queue type, e.g. album, playlist, radio station, tv series, etc.
|
protected MediaStatus.RepeatMode |
repeatMode
Continuous playback behavior of the queue
|
protected Boolean |
shuffle
Indicate if the queue is shuffled
|
protected Integer |
startIndex
The index of the item in the queue that should be used to start playback
first
|
protected Double |
startTime
Seconds (since the beginning of content) to start playback of the first
item
|
| Constructor and Description |
|---|
QueueData(ContainerMetadata containerMetadata,
String description,
String entity,
String id,
List<QueueItem> items,
String name,
QueueData.QueueType queueType,
MediaStatus.RepeatMode repeatMode,
Boolean shuffle,
Integer startIndex,
Double startTime)
Creates a new instance using the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ContainerMetadata |
getContainerMetadata() |
String |
getDescription() |
String |
getEntity() |
String |
getId() |
List<QueueItem> |
getItems() |
String |
getName() |
QueueData.QueueType |
getQueueType() |
MediaStatus.RepeatMode |
getRepeatMode() |
Boolean |
getShuffle() |
Integer |
getStartIndex() |
Double |
getStartTime() |
int |
hashCode() |
String |
toString() |
@Nullable protected final ContainerMetadata containerMetadata
@Nullable protected final String entity
@Nonnull protected final List<QueueItem> items
@Nullable protected final QueueData.QueueType queueType
@Nullable protected final MediaStatus.RepeatMode repeatMode
@Nullable protected final Integer startIndex
public QueueData(ContainerMetadata containerMetadata, String description, String entity, String id, List<QueueItem> items, String name, QueueData.QueueType queueType, MediaStatus.RepeatMode repeatMode, Boolean shuffle, Integer startIndex, Double startTime)
containerMetadata - the metadata to describe the queue content.description - the description of the queue.entity - the optional queue entity ID, provide Google Assistant deep
link.id - the ID of the queue.items - the List of QueueItems. It is sorted (first
element will be played first).name - the name of the queue.queueType - the queue type, e.g. album, playlist, radio station, tv
series, etc.repeatMode - the continuous playback behavior of the queue.shuffle - true if the queue is shuffled, false
otherwise.startIndex - the index of the item in the queue that should be used
to start playback first.startTime - the seconds (since the beginning of content) to start
playback of the first item.@Nullable public ContainerMetadata getContainerMetadata()
@Nullable public String getEntity()
@Nullable public QueueData.QueueType getQueueType()
@Nullable public MediaStatus.RepeatMode getRepeatMode()
@Nullable public Boolean getShuffle()
true if the queue is shuffled, false otherwise.@Nullable public Integer getStartIndex()
@Nullable public Double getStartTime()
Copyright © 2022. All rights reserved.