All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.subsonic.restapi.Playlist Maven / Gradle / Ivy

The newest version!
//
// 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.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import net.beardbot.subsonic.client.base.LocalDateTimeAdapter;


/**
 * 

Java class for Playlist complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="Playlist">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="allowedUser" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="comment" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="owner" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="public" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *       <attribute name="songCount" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
 *       <attribute name="duration" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
 *       <attribute name="created" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
 *       <attribute name="changed" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
 *       <attribute name="coverArt" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Playlist", propOrder = { "allowedUsers" }) @XmlSeeAlso({ PlaylistWithSongs.class }) public class Playlist { @XmlElement(name = "allowedUser") protected List allowedUsers; @XmlAttribute(name = "id", required = true) protected String id; @XmlAttribute(name = "name", required = true) protected String name; @XmlAttribute(name = "comment") protected String comment; @XmlAttribute(name = "owner") protected String owner; @XmlAttribute(name = "public") protected Boolean _public; @XmlAttribute(name = "songCount", required = true) protected int songCount; @XmlAttribute(name = "duration", required = true) protected int duration; @XmlAttribute(name = "created", required = true) @XmlJavaTypeAdapter(LocalDateTimeAdapter.class) @XmlSchemaType(name = "dateTime") protected LocalDateTime created; @XmlAttribute(name = "changed", required = true) @XmlJavaTypeAdapter(LocalDateTimeAdapter.class) @XmlSchemaType(name = "dateTime") protected LocalDateTime changed; @XmlAttribute(name = "coverArt") protected String coverArtId; /** * Gets the value of the allowedUsers 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 allowedUsers property. * *

* For example, to add a new item, do as follows: *

     *    getAllowedUsers().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * */ public List getAllowedUsers() { if (allowedUsers == null) { allowedUsers = new ArrayList(); } return this.allowedUsers; } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the comment property. * * @return * possible object is * {@link String } * */ public String getComment() { return comment; } /** * Sets the value of the comment property. * * @param value * allowed object is * {@link String } * */ public void setComment(String value) { this.comment = value; } /** * Gets the value of the owner property. * * @return * possible object is * {@link String } * */ public String getOwner() { return owner; } /** * Sets the value of the owner property. * * @param value * allowed object is * {@link String } * */ public void setOwner(String value) { this.owner = value; } /** * Gets the value of the public property. * * @return * possible object is * {@link Boolean } * */ public Boolean isPublic() { return _public; } /** * Sets the value of the public property. * * @param value * allowed object is * {@link Boolean } * */ public void setPublic(Boolean value) { this._public = value; } /** * Gets the value of the songCount property. * */ public int getSongCount() { return songCount; } /** * Sets the value of the songCount property. * */ public void setSongCount(int value) { this.songCount = value; } /** * Gets the value of the duration property. * */ public int getDuration() { return duration; } /** * Sets the value of the duration property. * */ public void setDuration(int value) { this.duration = value; } /** * Gets the value of the created property. * * @return * possible object is * {@link String } * */ public LocalDateTime getCreated() { return created; } /** * Sets the value of the created property. * * @param value * allowed object is * {@link String } * */ public void setCreated(LocalDateTime value) { this.created = 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 coverArtId property. * * @return * possible object is * {@link String } * */ public String getCoverArtId() { return coverArtId; } /** * Sets the value of the coverArtId property. * * @param value * allowed object is * {@link String } * */ public void setCoverArtId(String value) { this.coverArtId = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy