org.subsonic.restapi.PlayQueue Maven / Gradle / Ivy
Show all versions of subsonic-client Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.08.24 at 07:14:02 PM CEST
//
package org.subsonic.restapi;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import net.beardbot.subsonic.client.base.LocalDateTimeAdapter;
/**
* Java class for PlayQueue complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="PlayQueue">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="entry" type="{http://subsonic.org/restapi}Child" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="current" type="{http://www.w3.org/2001/XMLSchema}int" />
* <attribute name="position" type="{http://www.w3.org/2001/XMLSchema}long" />
* <attribute name="username" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="changed" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
* <attribute name="changedBy" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PlayQueue", propOrder = {
"entries"
})
public class PlayQueue {
@XmlElement(name = "entry")
protected List entries;
@XmlAttribute(name = "current")
protected Integer current;
@XmlAttribute(name = "position")
protected Long position;
@XmlAttribute(name = "username", required = true)
protected String username;
@XmlAttribute(name = "changed", required = true)
@XmlJavaTypeAdapter(LocalDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected LocalDateTime changed;
@XmlAttribute(name = "changedBy", required = true)
protected String changedBy;
/**
* Gets the value of the entries property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the entries property.
*
*
* For example, to add a new item, do as follows:
*
* getEntries().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Child }
*
*
*/
public List getEntries() {
if (entries == null) {
entries = new ArrayList();
}
return this.entries;
}
/**
* Gets the value of the current property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getCurrent() {
return current;
}
/**
* Sets the value of the current property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setCurrent(Integer value) {
this.current = value;
}
/**
* Gets the value of the position property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getPosition() {
return position;
}
/**
* Sets the value of the position property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setPosition(Long value) {
this.position = value;
}
/**
* Gets the value of the username property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUsername() {
return username;
}
/**
* Sets the value of the username property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUsername(String value) {
this.username = value;
}
/**
* Gets the value of the changed property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDateTime getChanged() {
return changed;
}
/**
* Sets the value of the changed property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setChanged(LocalDateTime value) {
this.changed = value;
}
/**
* Gets the value of the changedBy property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getChangedBy() {
return changedBy;
}
/**
* Sets the value of the changedBy property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setChangedBy(String value) {
this.changedBy = value;
}
}