Added Subsonic models

This commit is contained in:
CappielloAntonio 2021-07-24 12:27:06 +02:00
parent 9a02af7c71
commit 3fa634df39
67 changed files with 6884 additions and 0 deletions

View file

@ -0,0 +1,247 @@
package com.cappielloantonio.play.subsonic.models;
import java.time.LocalDateTime;
public class AlbumID3 {
protected String id;
protected String name;
protected String artist;
protected String artistId;
protected String coverArtId;
protected int songCount;
protected int duration;
protected Long playCount;
protected LocalDateTime created;
protected LocalDateTime starred;
protected Integer year;
protected String genre;
/**
* 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 artist property.
*
* @return possible object is
* {@link String }
*/
public String getArtist() {
return artist;
}
/**
* Sets the value of the artist property.
*
* @param value allowed object is
* {@link String }
*/
public void setArtist(String value) {
this.artist = value;
}
/**
* Gets the value of the artistId property.
*
* @return possible object is
* {@link String }
*/
public String getArtistId() {
return artistId;
}
/**
* Sets the value of the artistId property.
*
* @param value allowed object is
* {@link String }
*/
public void setArtistId(String value) {
this.artistId = 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;
}
/**
* 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 playCount property.
*
* @return possible object is
* {@link Long }
*/
public Long getPlayCount() {
return playCount;
}
/**
* Sets the value of the playCount property.
*
* @param value allowed object is
* {@link Long }
*/
public void setPlayCount(Long value) {
this.playCount = 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 starred property.
*
* @return possible object is
* {@link String }
*/
public LocalDateTime getStarred() {
return starred;
}
/**
* Sets the value of the starred property.
*
* @param value allowed object is
* {@link String }
*/
public void setStarred(LocalDateTime value) {
this.starred = value;
}
/**
* Gets the value of the year property.
*
* @return possible object is
* {@link Integer }
*/
public Integer getYear() {
return year;
}
/**
* Sets the value of the year property.
*
* @param value allowed object is
* {@link Integer }
*/
public void setYear(Integer value) {
this.year = value;
}
/**
* Gets the value of the genre property.
*
* @return possible object is
* {@link String }
*/
public String getGenre() {
return genre;
}
/**
* Sets the value of the genre property.
*
* @param value allowed object is
* {@link String }
*/
public void setGenre(String value) {
this.genre = value;
}
}

View file

@ -0,0 +1,131 @@
package com.cappielloantonio.play.subsonic.models;
public class AlbumInfo {
protected String notes;
protected String musicBrainzId;
protected String lastFmUrl;
protected String smallImageUrl;
protected String mediumImageUrl;
protected String largeImageUrl;
/**
* Gets the value of the notes property.
*
* @return possible object is
* {@link String }
*/
public String getNotes() {
return notes;
}
/**
* Sets the value of the notes property.
*
* @param value allowed object is
* {@link String }
*/
public void setNotes(String value) {
this.notes = value;
}
/**
* Gets the value of the musicBrainzId property.
*
* @return possible object is
* {@link String }
*/
public String getMusicBrainzId() {
return musicBrainzId;
}
/**
* Sets the value of the musicBrainzId property.
*
* @param value allowed object is
* {@link String }
*/
public void setMusicBrainzId(String value) {
this.musicBrainzId = value;
}
/**
* Gets the value of the lastFmUrl property.
*
* @return possible object is
* {@link String }
*/
public String getLastFmUrl() {
return lastFmUrl;
}
/**
* Sets the value of the lastFmUrl property.
*
* @param value allowed object is
* {@link String }
*/
public void setLastFmUrl(String value) {
this.lastFmUrl = value;
}
/**
* Gets the value of the smallImageUrl property.
*
* @return possible object is
* {@link String }
*/
public String getSmallImageUrl() {
return smallImageUrl;
}
/**
* Sets the value of the smallImageUrl property.
*
* @param value allowed object is
* {@link String }
*/
public void setSmallImageUrl(String value) {
this.smallImageUrl = value;
}
/**
* Gets the value of the mediumImageUrl property.
*
* @return possible object is
* {@link String }
*/
public String getMediumImageUrl() {
return mediumImageUrl;
}
/**
* Sets the value of the mediumImageUrl property.
*
* @param value allowed object is
* {@link String }
*/
public void setMediumImageUrl(String value) {
this.mediumImageUrl = value;
}
/**
* Gets the value of the largeImageUrl property.
*
* @return possible object is
* {@link String }
*/
public String getLargeImageUrl() {
return largeImageUrl;
}
/**
* Sets the value of the largeImageUrl property.
*
* @param value allowed object is
* {@link String }
*/
public void setLargeImageUrl(String value) {
this.largeImageUrl = value;
}
}

View file

@ -0,0 +1,35 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class AlbumList {
protected List<Child> albums;
/**
* Gets the value of the albums property.
*
* <p>
* 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 <CODE>set</CODE> method for the albums property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAlbums().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getAlbums() {
if (albums == null) {
albums = new ArrayList<Child>();
}
return this.albums;
}
}

View file

@ -0,0 +1,36 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class AlbumList2 {
protected List<AlbumID3> albums;
/**
* Gets the value of the albums property.
*
* <p>
* 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 <CODE>set</CODE> method for the albums property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAlbums().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link AlbumID3 }
*/
public List<AlbumID3> getAlbums() {
if (albums == null) {
albums = new ArrayList<AlbumID3>();
}
return this.albums;
}
}

View file

@ -0,0 +1,36 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class AlbumWithSongsID3 extends AlbumID3 {
protected List<Child> songs;
/**
* Gets the value of the songs property.
*
* <p>
* 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 <CODE>set</CODE> method for the songs property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSongs().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getSongs() {
if (songs == null) {
songs = new ArrayList<Child>();
}
return this.songs;
}
}

View file

@ -0,0 +1,112 @@
package com.cappielloantonio.play.subsonic.models;
import java.time.LocalDateTime;
public class Artist {
protected String id;
protected String name;
protected LocalDateTime starred;
protected Integer userRating;
protected Double averageRating;
/**
* 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 starred property.
*
* @return possible object is
* {@link String }
*/
public LocalDateTime getStarred() {
return starred;
}
/**
* Sets the value of the starred property.
*
* @param value allowed object is
* {@link String }
*/
public void setStarred(LocalDateTime value) {
this.starred = value;
}
/**
* Gets the value of the userRating property.
*
* @return possible object is
* {@link Integer }
*/
public Integer getUserRating() {
return userRating;
}
/**
* Sets the value of the userRating property.
*
* @param value allowed object is
* {@link Integer }
*/
public void setUserRating(Integer value) {
this.userRating = value;
}
/**
* Gets the value of the averageRating property.
*
* @return possible object is
* {@link Double }
*/
public Double getAverageRating() {
return averageRating;
}
/**
* Sets the value of the averageRating property.
*
* @param value allowed object is
* {@link Double }
*/
public void setAverageRating(Double value) {
this.averageRating = value;
}
}

View file

@ -0,0 +1,106 @@
package com.cappielloantonio.play.subsonic.models;
import java.time.LocalDateTime;
public class ArtistID3 {
protected String id;
protected String name;
protected String coverArtId;
protected int albumCount;
protected LocalDateTime starred;
/**
* 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 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;
}
/**
* Gets the value of the albumCount property.
*/
public int getAlbumCount() {
return albumCount;
}
/**
* Sets the value of the albumCount property.
*/
public void setAlbumCount(int value) {
this.albumCount = value;
}
/**
* Gets the value of the starred property.
*
* @return possible object is
* {@link String }
*/
public LocalDateTime getStarred() {
return starred;
}
/**
* Sets the value of the starred property.
*
* @param value allowed object is
* {@link String }
*/
public void setStarred(LocalDateTime value) {
this.starred = value;
}
}

View file

@ -0,0 +1,36 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class ArtistInfo extends ArtistInfoBase {
protected List<Artist> similarArtists;
/**
* Gets the value of the similarArtists property.
*
* <p>
* 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 <CODE>set</CODE> method for the similarArtists property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSimilarArtists().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Artist }
*/
public List<Artist> getSimilarArtists() {
if (similarArtists == null) {
similarArtists = new ArrayList<Artist>();
}
return this.similarArtists;
}
}

View file

@ -0,0 +1,36 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class ArtistInfo2 extends ArtistInfoBase {
protected List<ArtistID3> similarArtists;
/**
* Gets the value of the similarArtists property.
*
* <p>
* 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 <CODE>set</CODE> method for the similarArtists property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSimilarArtists().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ArtistID3 }
*/
public List<ArtistID3> getSimilarArtists() {
if (similarArtists == null) {
similarArtists = new ArrayList<ArtistID3>();
}
return this.similarArtists;
}
}

View file

@ -0,0 +1,130 @@
package com.cappielloantonio.play.subsonic.models;
public class ArtistInfoBase {
protected String biography;
protected String musicBrainzId;
protected String lastFmUrl;
protected String smallImageUrl;
protected String mediumImageUrl;
protected String largeImageUrl;
/**
* Gets the value of the biography property.
*
* @return possible object is
* {@link String }
*/
public String getBiography() {
return biography;
}
/**
* Sets the value of the biography property.
*
* @param value allowed object is
* {@link String }
*/
public void setBiography(String value) {
this.biography = value;
}
/**
* Gets the value of the musicBrainzId property.
*
* @return possible object is
* {@link String }
*/
public String getMusicBrainzId() {
return musicBrainzId;
}
/**
* Sets the value of the musicBrainzId property.
*
* @param value allowed object is
* {@link String }
*/
public void setMusicBrainzId(String value) {
this.musicBrainzId = value;
}
/**
* Gets the value of the lastFmUrl property.
*
* @return possible object is
* {@link String }
*/
public String getLastFmUrl() {
return lastFmUrl;
}
/**
* Sets the value of the lastFmUrl property.
*
* @param value allowed object is
* {@link String }
*/
public void setLastFmUrl(String value) {
this.lastFmUrl = value;
}
/**
* Gets the value of the smallImageUrl property.
*
* @return possible object is
* {@link String }
*/
public String getSmallImageUrl() {
return smallImageUrl;
}
/**
* Sets the value of the smallImageUrl property.
*
* @param value allowed object is
* {@link String }
*/
public void setSmallImageUrl(String value) {
this.smallImageUrl = value;
}
/**
* Gets the value of the mediumImageUrl property.
*
* @return possible object is
* {@link String }
*/
public String getMediumImageUrl() {
return mediumImageUrl;
}
/**
* Sets the value of the mediumImageUrl property.
*
* @param value allowed object is
* {@link String }
*/
public void setMediumImageUrl(String value) {
this.mediumImageUrl = value;
}
/**
* Gets the value of the largeImageUrl property.
*
* @return possible object is
* {@link String }
*/
public String getLargeImageUrl() {
return largeImageUrl;
}
/**
* Sets the value of the largeImageUrl property.
*
* @param value allowed object is
* {@link String }
*/
public void setLargeImageUrl(String value) {
this.largeImageUrl = value;
}
}

View file

@ -0,0 +1,35 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class ArtistWithAlbumsID3 extends ArtistID3 {
protected List<AlbumID3> albums;
/**
* Gets the value of the albums property.
*
* <p>
* 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 <CODE>set</CODE> method for the albums property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAlbums().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link AlbumID3 }
*/
public List<AlbumID3> getAlbums() {
if (albums == null) {
albums = new ArrayList<AlbumID3>();
}
return this.albums;
}
}

View file

@ -0,0 +1,56 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class ArtistsID3 {
protected List<IndexID3> indices;
protected String ignoredArticles;
/**
* Gets the value of the indices property.
*
* <p>
* 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 <CODE>set</CODE> method for the indices property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getIndices().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link IndexID3 }
*/
public List<IndexID3> getIndices() {
if (indices == null) {
indices = new ArrayList<IndexID3>();
}
return this.indices;
}
/**
* Gets the value of the ignoredArticles property.
*
* @return possible object is
* {@link String }
*/
public String getIgnoredArticles() {
return ignoredArticles;
}
/**
* Sets the value of the ignoredArticles property.
*
* @param value allowed object is
* {@link String }
*/
public void setIgnoredArticles(String value) {
this.ignoredArticles = value;
}
}

View file

@ -0,0 +1,67 @@
package com.cappielloantonio.play.subsonic.models;
public class AudioTrack {
protected String id;
protected String name;
protected String languageCode;
/**
* 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 languageCode property.
*
* @return possible object is
* {@link String }
*/
public String getLanguageCode() {
return languageCode;
}
/**
* Sets the value of the languageCode property.
*
* @param value allowed object is
* {@link String }
*/
public void setLanguageCode(String value) {
this.languageCode = value;
}
}

View file

@ -0,0 +1,126 @@
package com.cappielloantonio.play.subsonic.models;
import java.time.LocalDateTime;
public class Bookmark {
protected Child entry;
protected long position;
protected String username;
protected String comment;
protected LocalDateTime created;
protected LocalDateTime changed;
/**
* Gets the value of the entry property.
*
* @return possible object is
* {@link Child }
*/
public Child getEntry() {
return entry;
}
/**
* Sets the value of the entry property.
*
* @param value allowed object is
* {@link Child }
*/
public void setEntry(Child value) {
this.entry = value;
}
/**
* Gets the value of the position property.
*/
public long getPosition() {
return position;
}
/**
* Sets the value of the position property.
*/
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 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 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;
}
}

View file

@ -0,0 +1,36 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class Bookmarks {
protected List<Bookmark> bookmarks;
/**
* Gets the value of the bookmarks property.
*
* <p>
* 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 <CODE>set</CODE> method for the bookmarks property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getBookmarks().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Bookmark }
*/
public List<Bookmark> getBookmarks() {
if (bookmarks == null) {
bookmarks = new ArrayList<Bookmark>();
}
return this.bookmarks;
}
}

View file

@ -0,0 +1,46 @@
package com.cappielloantonio.play.subsonic.models;
public class Captions {
protected String id;
protected String name;
/**
* 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;
}
}

View file

@ -0,0 +1,61 @@
package com.cappielloantonio.play.subsonic.models;
public class ChatMessage {
protected String username;
protected long time;
protected String message;
/**
* 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 time property.
*/
public long getTime() {
return time;
}
/**
* Sets the value of the time property.
*/
public void setTime(long value) {
this.time = value;
}
/**
* Gets the value of the message property.
*
* @return possible object is
* {@link String }
*/
public String getMessage() {
return message;
}
/**
* Sets the value of the message property.
*
* @param value allowed object is
* {@link String }
*/
public void setMessage(String value) {
this.message = value;
}
}

View file

@ -0,0 +1,35 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class ChatMessages {
protected List<ChatMessage> chatMessages;
/**
* Gets the value of the chatMessages property.
*
* <p>
* 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 <CODE>set</CODE> method for the chatMessages property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getChatMessages().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ChatMessage }
*/
public List<ChatMessage> getChatMessages() {
if (chatMessages == null) {
chatMessages = new ArrayList<ChatMessage>();
}
return this.chatMessages;
}
}

View file

@ -0,0 +1,651 @@
package com.cappielloantonio.play.subsonic.models;
import java.time.LocalDateTime;
public class Child {
protected String id;
protected String parentId;
protected boolean dir;
protected String title;
protected String album;
protected String artist;
protected Integer track;
protected Integer year;
protected String genre;
protected String coverArtId;
protected Long size;
protected String contentType;
protected String suffix;
protected String transcodedContentType;
protected String transcodedSuffix;
protected Integer duration;
protected Integer bitRate;
protected String path;
protected Boolean video;
protected Integer userRating;
protected Double averageRating;
protected Long playCount;
protected Integer discNumber;
protected LocalDateTime created;
protected LocalDateTime starred;
protected String albumId;
protected String artistId;
protected MediaType type;
protected Long bookmarkPosition;
protected Integer originalWidth;
protected Integer originalHeight;
/**
* 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 parentId property.
*
* @return possible object is
* {@link String }
*/
public String getParentId() {
return parentId;
}
/**
* Sets the value of the parentId property.
*
* @param value allowed object is
* {@link String }
*/
public void setParentId(String value) {
this.parentId = value;
}
/**
* Gets the value of the dir property.
*/
public boolean isDir() {
return dir;
}
/**
* Sets the value of the dir property.
*/
public void setDir(boolean value) {
this.dir = value;
}
/**
* Gets the value of the title property.
*
* @return possible object is
* {@link String }
*/
public String getTitle() {
return title;
}
/**
* Sets the value of the title property.
*
* @param value allowed object is
* {@link String }
*/
public void setTitle(String value) {
this.title = value;
}
/**
* Gets the value of the album property.
*
* @return possible object is
* {@link String }
*/
public String getAlbum() {
return album;
}
/**
* Sets the value of the album property.
*
* @param value allowed object is
* {@link String }
*/
public void setAlbum(String value) {
this.album = value;
}
/**
* Gets the value of the artist property.
*
* @return possible object is
* {@link String }
*/
public String getArtist() {
return artist;
}
/**
* Sets the value of the artist property.
*
* @param value allowed object is
* {@link String }
*/
public void setArtist(String value) {
this.artist = value;
}
/**
* Gets the value of the track property.
*
* @return possible object is
* {@link Integer }
*/
public Integer getTrack() {
return track;
}
/**
* Sets the value of the track property.
*
* @param value allowed object is
* {@link Integer }
*/
public void setTrack(Integer value) {
this.track = value;
}
/**
* Gets the value of the year property.
*
* @return possible object is
* {@link Integer }
*/
public Integer getYear() {
return year;
}
/**
* Sets the value of the year property.
*
* @param value allowed object is
* {@link Integer }
*/
public void setYear(Integer value) {
this.year = value;
}
/**
* Gets the value of the genre property.
*
* @return possible object is
* {@link String }
*/
public String getGenre() {
return genre;
}
/**
* Sets the value of the genre property.
*
* @param value allowed object is
* {@link String }
*/
public void setGenre(String value) {
this.genre = 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;
}
/**
* Gets the value of the size property.
*
* @return possible object is
* {@link Long }
*/
public Long getSize() {
return size;
}
/**
* Sets the value of the size property.
*
* @param value allowed object is
* {@link Long }
*/
public void setSize(Long value) {
this.size = value;
}
/**
* Gets the value of the contentType property.
*
* @return possible object is
* {@link String }
*/
public String getContentType() {
return contentType;
}
/**
* Sets the value of the contentType property.
*
* @param value allowed object is
* {@link String }
*/
public void setContentType(String value) {
this.contentType = value;
}
/**
* Gets the value of the suffix property.
*
* @return possible object is
* {@link String }
*/
public String getSuffix() {
return suffix;
}
/**
* Sets the value of the suffix property.
*
* @param value allowed object is
* {@link String }
*/
public void setSuffix(String value) {
this.suffix = value;
}
/**
* Gets the value of the transcodedContentType property.
*
* @return possible object is
* {@link String }
*/
public String getTranscodedContentType() {
return transcodedContentType;
}
/**
* Sets the value of the transcodedContentType property.
*
* @param value allowed object is
* {@link String }
*/
public void setTranscodedContentType(String value) {
this.transcodedContentType = value;
}
/**
* Gets the value of the transcodedSuffix property.
*
* @return possible object is
* {@link String }
*/
public String getTranscodedSuffix() {
return transcodedSuffix;
}
/**
* Sets the value of the transcodedSuffix property.
*
* @param value allowed object is
* {@link String }
*/
public void setTranscodedSuffix(String value) {
this.transcodedSuffix = value;
}
/**
* Gets the value of the duration property.
*
* @return possible object is
* {@link Integer }
*/
public Integer getDuration() {
return duration;
}
/**
* Sets the value of the duration property.
*
* @param value allowed object is
* {@link Integer }
*/
public void setDuration(Integer value) {
this.duration = value;
}
/**
* Gets the value of the bitRate property.
*
* @return possible object is
* {@link Integer }
*/
public Integer getBitRate() {
return bitRate;
}
/**
* Sets the value of the bitRate property.
*
* @param value allowed object is
* {@link Integer }
*/
public void setBitRate(Integer value) {
this.bitRate = value;
}
/**
* Gets the value of the path property.
*
* @return possible object is
* {@link String }
*/
public String getPath() {
return path;
}
/**
* Sets the value of the path property.
*
* @param value allowed object is
* {@link String }
*/
public void setPath(String value) {
this.path = value;
}
/**
* Gets the value of the video property.
*
* @return possible object is
* {@link Boolean }
*/
public Boolean isVideo() {
return video;
}
/**
* Sets the value of the video property.
*
* @param value allowed object is
* {@link Boolean }
*/
public void setVideo(Boolean value) {
this.video = value;
}
/**
* Gets the value of the userRating property.
*
* @return possible object is
* {@link Integer }
*/
public Integer getUserRating() {
return userRating;
}
/**
* Sets the value of the userRating property.
*
* @param value allowed object is
* {@link Integer }
*/
public void setUserRating(Integer value) {
this.userRating = value;
}
/**
* Gets the value of the averageRating property.
*
* @return possible object is
* {@link Double }
*/
public Double getAverageRating() {
return averageRating;
}
/**
* Sets the value of the averageRating property.
*
* @param value allowed object is
* {@link Double }
*/
public void setAverageRating(Double value) {
this.averageRating = value;
}
/**
* Gets the value of the playCount property.
*
* @return possible object is
* {@link Long }
*/
public Long getPlayCount() {
return playCount;
}
/**
* Sets the value of the playCount property.
*
* @param value allowed object is
* {@link Long }
*/
public void setPlayCount(Long value) {
this.playCount = value;
}
/**
* Gets the value of the discNumber property.
*
* @return possible object is
* {@link Integer }
*/
public Integer getDiscNumber() {
return discNumber;
}
/**
* Sets the value of the discNumber property.
*
* @param value allowed object is
* {@link Integer }
*/
public void setDiscNumber(Integer value) {
this.discNumber = 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 starred property.
*
* @return possible object is
* {@link String }
*/
public LocalDateTime getStarred() {
return starred;
}
/**
* Sets the value of the starred property.
*
* @param value allowed object is
* {@link String }
*/
public void setStarred(LocalDateTime value) {
this.starred = value;
}
/**
* Gets the value of the albumId property.
*
* @return possible object is
* {@link String }
*/
public String getAlbumId() {
return albumId;
}
/**
* Sets the value of the albumId property.
*
* @param value allowed object is
* {@link String }
*/
public void setAlbumId(String value) {
this.albumId = value;
}
/**
* Gets the value of the artistId property.
*
* @return possible object is
* {@link String }
*/
public String getArtistId() {
return artistId;
}
/**
* Sets the value of the artistId property.
*
* @param value allowed object is
* {@link String }
*/
public void setArtistId(String value) {
this.artistId = value;
}
/**
* Gets the value of the type property.
*
* @return possible object is
* {@link MediaType }
*/
public MediaType getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value allowed object is
* {@link MediaType }
*/
public void setType(MediaType value) {
this.type = value;
}
/**
* Gets the value of the bookmarkPosition property.
*
* @return possible object is
* {@link Long }
*/
public Long getBookmarkPosition() {
return bookmarkPosition;
}
/**
* Sets the value of the bookmarkPosition property.
*
* @param value allowed object is
* {@link Long }
*/
public void setBookmarkPosition(Long value) {
this.bookmarkPosition = value;
}
/**
* Gets the value of the originalWidth property.
*
* @return possible object is
* {@link Integer }
*/
public Integer getOriginalWidth() {
return originalWidth;
}
/**
* Sets the value of the originalWidth property.
*
* @param value allowed object is
* {@link Integer }
*/
public void setOriginalWidth(Integer value) {
this.originalWidth = value;
}
/**
* Gets the value of the originalHeight property.
*
* @return possible object is
* {@link Integer }
*/
public Integer getOriginalHeight() {
return originalHeight;
}
/**
* Sets the value of the originalHeight property.
*
* @param value allowed object is
* {@link Integer }
*/
public void setOriginalHeight(Integer value) {
this.originalHeight = value;
}
}

View file

@ -0,0 +1,183 @@
package com.cappielloantonio.play.subsonic.models;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
public class Directory {
protected List<Child> children;
protected String id;
protected String parentId;
protected String name;
protected LocalDateTime starred;
protected Integer userRating;
protected Double averageRating;
protected Long playCount;
/**
* Gets the value of the children property.
*
* <p>
* 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 <CODE>set</CODE> method for the children property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getchildren().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getchildren() {
if (children == null) {
children = new ArrayList<Child>();
}
return this.children;
}
/**
* 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 parentId property.
*
* @return possible object is
* {@link String }
*/
public String getParentId() {
return parentId;
}
/**
* Sets the value of the parentId property.
*
* @param value allowed object is
* {@link String }
*/
public void setParentId(String value) {
this.parentId = 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 starred property.
*
* @return possible object is
* {@link String }
*/
public LocalDateTime getStarred() {
return starred;
}
/**
* Sets the value of the starred property.
*
* @param value allowed object is
* {@link String }
*/
public void setStarred(LocalDateTime value) {
this.starred = value;
}
/**
* Gets the value of the userRating property.
*
* @return possible object is
* {@link Integer }
*/
public Integer getUserRating() {
return userRating;
}
/**
* Sets the value of the userRating property.
*
* @param value allowed object is
* {@link Integer }
*/
public void setUserRating(Integer value) {
this.userRating = value;
}
/**
* Gets the value of the averageRating property.
*
* @return possible object is
* {@link Double }
*/
public Double getAverageRating() {
return averageRating;
}
/**
* Sets the value of the averageRating property.
*
* @param value allowed object is
* {@link Double }
*/
public void setAverageRating(Double value) {
this.averageRating = value;
}
/**
* Gets the value of the playCount property.
*
* @return possible object is
* {@link Long }
*/
public Long getPlayCount() {
return playCount;
}
/**
* Sets the value of the playCount property.
*
* @param value allowed object is
* {@link Long }
*/
public void setPlayCount(Long value) {
this.playCount = value;
}
}

View file

@ -0,0 +1,46 @@
package com.cappielloantonio.play.subsonic.models;
public class Error {
protected ErrorCode code;
protected String message;
/**
* Gets the value of the code property.
*
* @return possible object is
* {@link ErrorCode }
*/
public ErrorCode getCode() {
return code;
}
/**
* Sets the value of the code property.
*
* @param value allowed object is
* {@link ErrorCode }
*/
public void setCode(ErrorCode value) {
this.code = value;
}
/**
* Gets the value of the message property.
*
* @return possible object is
* {@link String }
*/
public String getMessage() {
return message;
}
/**
* Sets the value of the message property.
*
* @param value allowed object is
* {@link String }
*/
public void setMessage(String value) {
this.message = value;
}
}

View file

@ -0,0 +1,31 @@
package com.cappielloantonio.play.subsonic.models;
public enum ErrorCode {
GENERIC_ERROR(0),
REQUIRED_PARAMETER_MISSING(10),
INCOMPATIBLE_VERSION_CLIENT(20),
INCOMPATIBLE_VERSION_SERVER(30),
WRONG_USERNAME_OR_PASSWORD(40),
TOKEN_AUTHENTICATION_NOT_SUPPORTED(41),
USER_NOT_AUTHORIZED(50),
TRIAL_PERIOD_OVER(60),
DATA_NOT_FOUND(70);
private final int value;
ErrorCode(int v) {
value = v;
}
public int value() {
return value;
}
public static ErrorCode fromValue(int v) {
for (ErrorCode c : ErrorCode.values()) {
if (c.value == v) {
return c;
}
}
throw new IllegalArgumentException(String.valueOf(v));
}
}

View file

@ -0,0 +1,55 @@
package com.cappielloantonio.play.subsonic.models;
public class Genre {
protected String name;
protected int songCount;
protected int albumCount;
/**
* 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 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 albumCount property.
*/
public int getAlbumCount() {
return albumCount;
}
/**
* Sets the value of the albumCount property.
*/
public void setAlbumCount(int value) {
this.albumCount = value;
}
}

View file

@ -0,0 +1,35 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class Genres {
protected List<Genre> genres;
/**
* Gets the value of the genres property.
*
* <p>
* 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 <CODE>set</CODE> method for the genres property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getGenres().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Genre }
*/
public List<Genre> getGenres() {
if (genres == null) {
genres = new ArrayList<Genre>();
}
return this.genres;
}
}

View file

@ -0,0 +1,56 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class Index {
protected List<Artist> artists;
protected String name;
/**
* Gets the value of the artists property.
*
* <p>
* 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 <CODE>set</CODE> method for the artists property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getArtists().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Artist }
*/
public List<Artist> getArtists() {
if (artists == null) {
artists = new ArrayList<Artist>();
}
return this.artists;
}
/**
* 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;
}
}

View file

@ -0,0 +1,56 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class IndexID3 {
protected List<ArtistID3> artists;
protected String name;
/**
* Gets the value of the artists property.
*
* <p>
* 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 <CODE>set</CODE> method for the artists property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getArtists().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ArtistID3 }
*/
public List<ArtistID3> getArtists() {
if (artists == null) {
artists = new ArrayList<ArtistID3>();
}
return this.artists;
}
/**
* 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;
}
}

View file

@ -0,0 +1,127 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class Indexes {
protected List<Artist> shortcuts;
protected List<Index> indices;
protected List<Child> children;
protected long lastModified;
protected String ignoredArticles;
/**
* Gets the value of the shortcuts property.
*
* <p>
* 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 <CODE>set</CODE> method for the shortcuts property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getShortcuts().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Artist }
*/
public List<Artist> getShortcuts() {
if (shortcuts == null) {
shortcuts = new ArrayList<Artist>();
}
return this.shortcuts;
}
/**
* Gets the value of the indices property.
*
* <p>
* 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 <CODE>set</CODE> method for the indices property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getIndices().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Index }
*/
public List<Index> getIndices() {
if (indices == null) {
indices = new ArrayList<Index>();
}
return this.indices;
}
/**
* Gets the value of the children property.
*
* <p>
* 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 <CODE>set</CODE> method for the children property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getchildren().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getchildren() {
if (children == null) {
children = new ArrayList<Child>();
}
return this.children;
}
/**
* Gets the value of the lastModified property.
*/
public long getLastModified() {
return lastModified;
}
/**
* Sets the value of the lastModified property.
*/
public void setLastModified(long value) {
this.lastModified = value;
}
/**
* Gets the value of the ignoredArticles property.
*
* @return possible object is
* {@link String }
*/
public String getIgnoredArticles() {
return ignoredArticles;
}
/**
* Sets the value of the ignoredArticles property.
*
* @param value allowed object is
* {@link String }
*/
public void setIgnoredArticles(String value) {
this.ignoredArticles = value;
}
}

View file

@ -0,0 +1,88 @@
package com.cappielloantonio.play.subsonic.models;
public class InternetRadioStation {
protected String id;
protected String name;
protected String streamUrl;
protected String homePageUrl;
/**
* 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 streamUrl property.
*
* @return possible object is
* {@link String }
*/
public String getStreamUrl() {
return streamUrl;
}
/**
* Sets the value of the streamUrl property.
*
* @param value allowed object is
* {@link String }
*/
public void setStreamUrl(String value) {
this.streamUrl = value;
}
/**
* Gets the value of the homePageUrl property.
*
* @return possible object is
* {@link String }
*/
public String getHomePageUrl() {
return homePageUrl;
}
/**
* Sets the value of the homePageUrl property.
*
* @param value allowed object is
* {@link String }
*/
public void setHomePageUrl(String value) {
this.homePageUrl = value;
}
}

View file

@ -0,0 +1,36 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class InternetRadioStations {
protected List<InternetRadioStation> internetRadioStations;
/**
* Gets the value of the internetRadioStations property.
*
* <p>
* 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 <CODE>set</CODE> method for the internetRadioStations property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getInternetRadioStations().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link InternetRadioStation }
*/
public List<InternetRadioStation> getInternetRadioStations() {
if (internetRadioStations == null) {
internetRadioStations = new ArrayList<InternetRadioStation>();
}
return this.internetRadioStations;
}
}

View file

@ -0,0 +1,35 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class JukeboxPlaylist extends JukeboxStatus {
protected List<Child> entries;
/**
* Gets the value of the entries property.
*
* <p>
* 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 <CODE>set</CODE> method for the entries property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getEntries().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getEntries() {
if (entries == null) {
entries = new ArrayList<Child>();
}
return this.entries;
}
}

View file

@ -0,0 +1,70 @@
package com.cappielloantonio.play.subsonic.models;
public class JukeboxStatus {
protected int currentIndex;
protected boolean playing;
protected float gain;
protected Integer position;
/**
* Gets the value of the currentIndex property.
*/
public int getCurrentIndex() {
return currentIndex;
}
/**
* Sets the value of the currentIndex property.
*/
public void setCurrentIndex(int value) {
this.currentIndex = value;
}
/**
* Gets the value of the playing property.
*/
public boolean isPlaying() {
return playing;
}
/**
* Sets the value of the playing property.
*/
public void setPlaying(boolean value) {
this.playing = value;
}
/**
* Gets the value of the gain property.
*/
public float getGain() {
return gain;
}
/**
* Sets the value of the gain property.
*/
public void setGain(float value) {
this.gain = value;
}
/**
* Gets the value of the position property.
*
* @return possible object is
* {@link Integer }
*/
public Integer getPosition() {
return position;
}
/**
* Sets the value of the position property.
*
* @param value allowed object is
* {@link Integer }
*/
public void setPosition(Integer value) {
this.position = value;
}
}

View file

@ -0,0 +1,84 @@
package com.cappielloantonio.play.subsonic.models;
import java.time.LocalDateTime;
public class License {
protected boolean valid;
protected String email;
protected LocalDateTime licenseExpires;
protected LocalDateTime trialExpires;
/**
* Gets the value of the valid property.
*/
public boolean isValid() {
return valid;
}
/**
* Sets the value of the valid property.
*/
public void setValid(boolean value) {
this.valid = value;
}
/**
* Gets the value of the email property.
*
* @return possible object is
* {@link String }
*/
public String getEmail() {
return email;
}
/**
* Sets the value of the email property.
*
* @param value allowed object is
* {@link String }
*/
public void setEmail(String value) {
this.email = value;
}
/**
* Gets the value of the licenseExpires property.
*
* @return possible object is
* {@link String }
*/
public LocalDateTime getLicenseExpires() {
return licenseExpires;
}
/**
* Sets the value of the licenseExpires property.
*
* @param value allowed object is
* {@link String }
*/
public void setLicenseExpires(LocalDateTime value) {
this.licenseExpires = value;
}
/**
* Gets the value of the trialExpires property.
*
* @return possible object is
* {@link String }
*/
public LocalDateTime getTrialExpires() {
return trialExpires;
}
/**
* Sets the value of the trialExpires property.
*
* @param value allowed object is
* {@link String }
*/
public void setTrialExpires(LocalDateTime value) {
this.trialExpires = value;
}
}

View file

@ -0,0 +1,67 @@
package com.cappielloantonio.play.subsonic.models;
public class Lyrics {
protected String content;
protected String artist;
protected String title;
/**
* Gets the value of the content property.
*
* @return possible object is
* {@link String }
*/
public String getContent() {
return content;
}
/**
* Sets the value of the content property.
*
* @param value allowed object is
* {@link String }
*/
public void setContent(String value) {
this.content = value;
}
/**
* Gets the value of the artist property.
*
* @return possible object is
* {@link String }
*/
public String getArtist() {
return artist;
}
/**
* Sets the value of the artist property.
*
* @param value allowed object is
* {@link String }
*/
public void setArtist(String value) {
this.artist = value;
}
/**
* Gets the value of the title property.
*
* @return possible object is
* {@link String }
*/
public String getTitle() {
return title;
}
/**
* Sets the value of the title property.
*
* @param value allowed object is
* {@link String }
*/
public void setTitle(String value) {
this.title = value;
}
}

View file

@ -0,0 +1,27 @@
package com.cappielloantonio.play.subsonic.models;
public enum MediaType {
MUSIC("music"),
PODCAST("podcast"),
AUDIOBOOK("audiobook"),
VIDEO("video");
private final String value;
MediaType(String v) {
value = v;
}
public String value() {
return value;
}
public static MediaType fromValue(String v) {
for (MediaType c : MediaType.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}

View file

@ -0,0 +1,40 @@
package com.cappielloantonio.play.subsonic.models;
public class MusicFolder {
protected int id;
protected String name;
/**
* Gets the value of the id property.
*/
public int getId() {
return id;
}
/**
* Sets the value of the id property.
*/
public void setId(int 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;
}
}

View file

@ -0,0 +1,36 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class MusicFolders {
protected List<MusicFolder> musicFolders;
/**
* Gets the value of the musicFolders property.
*
* <p>
* 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 <CODE>set</CODE> method for the musicFolders property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getMusicFolders().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link MusicFolder }
*/
public List<MusicFolder> getMusicFolders() {
if (musicFolders == null) {
musicFolders = new ArrayList<MusicFolder>();
}
return this.musicFolders;
}
}

View file

@ -0,0 +1,35 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class NewestPodcasts {
protected List<PodcastEpisode> episodes;
/**
* Gets the value of the episodes property.
*
* <p>
* 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 <CODE>set</CODE> method for the episodes property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getEpisodes().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link PodcastEpisode }
*/
public List<PodcastEpisode> getEpisodes() {
if (episodes == null) {
episodes = new ArrayList<PodcastEpisode>();
}
return this.episodes;
}
}

View file

@ -0,0 +1,35 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class NowPlaying {
protected List<NowPlayingEntry> entries;
/**
* Gets the value of the entries property.
*
* <p>
* 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 <CODE>set</CODE> method for the entries property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getEntries().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link NowPlayingEntry }
*/
public List<NowPlayingEntry> getEntries() {
if (entries == null) {
entries = new ArrayList<NowPlayingEntry>();
}
return this.entries;
}
}

View file

@ -0,0 +1,76 @@
package com.cappielloantonio.play.subsonic.models;
public class NowPlayingEntry extends Child {
protected String username;
protected int minutesAgo;
protected int playerId;
protected String playerName;
/**
* 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 minutesAgo property.
*/
public int getMinutesAgo() {
return minutesAgo;
}
/**
* Sets the value of the minutesAgo property.
*/
public void setMinutesAgo(int value) {
this.minutesAgo = value;
}
/**
* Gets the value of the playerId property.
*/
public int getPlayerId() {
return playerId;
}
/**
* Sets the value of the playerId property.
*/
public void setPlayerId(int value) {
this.playerId = value;
}
/**
* Gets the value of the playerName property.
*
* @return possible object is
* {@link String }
*/
public String getPlayerName() {
return playerName;
}
/**
* Sets the value of the playerName property.
*
* @param value allowed object is
* {@link String }
*/
public void setPlayerName(String value) {
this.playerName = value;
}
}

View file

@ -0,0 +1,443 @@
package com.cappielloantonio.play.subsonic.models;
public class ObjectFactory {
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.subsonic.restapi
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link SubsonicResponse }
*/
public SubsonicResponse createSubsonicResponse() {
return new SubsonicResponse();
}
/**
* Create an instance of {@link Error }
*/
public Error createError() {
return new Error();
}
/**
* Create an instance of {@link ScanStatus }
*/
public ScanStatus createScanStatus() {
return new ScanStatus();
}
/**
* Create an instance of {@link TopSongs }
*/
public TopSongs createTopSongs() {
return new TopSongs();
}
/**
* Create an instance of {@link SimilarSongs2 }
*/
public SimilarSongs2 createSimilarSongs2() {
return new SimilarSongs2();
}
/**
* Create an instance of {@link SimilarSongs }
*/
public SimilarSongs createSimilarSongs() {
return new SimilarSongs();
}
/**
* Create an instance of {@link ArtistInfo2 }
*/
public ArtistInfo2 createArtistInfo2() {
return new ArtistInfo2();
}
/**
* Create an instance of {@link ArtistInfo }
*/
public ArtistInfo createArtistInfo() {
return new ArtistInfo();
}
/**
* Create an instance of {@link AlbumInfo }
*/
public AlbumInfo createAlbumInfo() {
return new AlbumInfo();
}
/**
* Create an instance of {@link Starred2 }
*/
public Starred2 createStarred2() {
return new Starred2();
}
/**
* Create an instance of {@link Starred }
*/
public Starred createStarred() {
return new Starred();
}
/**
* Create an instance of {@link Shares }
*/
public Shares createShares() {
return new Shares();
}
/**
* Create an instance of {@link PlayQueue }
*/
public PlayQueue createPlayQueue() {
return new PlayQueue();
}
/**
* Create an instance of {@link Bookmarks }
*/
public Bookmarks createBookmarks() {
return new Bookmarks();
}
/**
* Create an instance of {@link InternetRadioStations }
*/
public InternetRadioStations createInternetRadioStations() {
return new InternetRadioStations();
}
/**
* Create an instance of {@link NewestPodcasts }
*/
public NewestPodcasts createNewestPodcasts() {
return new NewestPodcasts();
}
/**
* Create an instance of {@link Podcasts }
*/
public Podcasts createPodcasts() {
return new Podcasts();
}
/**
* Create an instance of {@link Lyrics }
*/
public Lyrics createLyrics() {
return new Lyrics();
}
/**
* Create an instance of {@link Songs }
*/
public Songs createSongs() {
return new Songs();
}
/**
* Create an instance of {@link AlbumList2 }
*/
public AlbumList2 createAlbumList2() {
return new AlbumList2();
}
/**
* Create an instance of {@link AlbumList }
*/
public AlbumList createAlbumList() {
return new AlbumList();
}
/**
* Create an instance of {@link ChatMessages }
*/
public ChatMessages createChatMessages() {
return new ChatMessages();
}
/**
* Create an instance of {@link User }
*/
public User createUser() {
return new User();
}
/**
* Create an instance of {@link Users }
*/
public Users createUsers() {
return new Users();
}
/**
* Create an instance of {@link License }
*/
public License createLicense() {
return new License();
}
/**
* Create an instance of {@link JukeboxPlaylist }
*/
public JukeboxPlaylist createJukeboxPlaylist() {
return new JukeboxPlaylist();
}
/**
* Create an instance of {@link JukeboxStatus }
*/
public JukeboxStatus createJukeboxStatus() {
return new JukeboxStatus();
}
/**
* Create an instance of {@link PlaylistWithSongs }
*/
public PlaylistWithSongs createPlaylistWithSongs() {
return new PlaylistWithSongs();
}
/**
* Create an instance of {@link Playlists }
*/
public Playlists createPlaylists() {
return new Playlists();
}
/**
* Create an instance of {@link SearchResult3 }
*/
public SearchResult3 createSearchResult3() {
return new SearchResult3();
}
/**
* Create an instance of {@link SearchResult2 }
*/
public SearchResult2 createSearchResult2() {
return new SearchResult2();
}
/**
* Create an instance of {@link SearchResult }
*/
public SearchResult createSearchResult() {
return new SearchResult();
}
/**
* Create an instance of {@link NowPlaying }
*/
public NowPlaying createNowPlaying() {
return new NowPlaying();
}
/**
* Create an instance of {@link VideoInfo }
*/
public VideoInfo createVideoInfo() {
return new VideoInfo();
}
/**
* Create an instance of {@link Videos }
*/
public Videos createVideos() {
return new Videos();
}
/**
* Create an instance of {@link Child }
*/
public Child createChild() {
return new Child();
}
/**
* Create an instance of {@link AlbumWithSongsID3 }
*/
public AlbumWithSongsID3 createAlbumWithSongsID3() {
return new AlbumWithSongsID3();
}
/**
* Create an instance of {@link ArtistWithAlbumsID3 }
*/
public ArtistWithAlbumsID3 createArtistWithAlbumsID3() {
return new ArtistWithAlbumsID3();
}
/**
* Create an instance of {@link ArtistsID3 }
*/
public ArtistsID3 createArtistsID3() {
return new ArtistsID3();
}
/**
* Create an instance of {@link Genres }
*/
public Genres createGenres() {
return new Genres();
}
/**
* Create an instance of {@link Directory }
*/
public Directory createDirectory() {
return new Directory();
}
/**
* Create an instance of {@link Indexes }
*/
public Indexes createIndexes() {
return new Indexes();
}
/**
* Create an instance of {@link MusicFolders }
*/
public MusicFolders createMusicFolders() {
return new MusicFolders();
}
/**
* Create an instance of {@link MusicFolder }
*/
public MusicFolder createMusicFolder() {
return new MusicFolder();
}
/**
* Create an instance of {@link Index }
*/
public Index createIndex() {
return new Index();
}
/**
* Create an instance of {@link Artist }
*/
public Artist createArtist() {
return new Artist();
}
/**
* Create an instance of {@link Genre }
*/
public Genre createGenre() {
return new Genre();
}
/**
* Create an instance of {@link IndexID3 }
*/
public IndexID3 createIndexID3() {
return new IndexID3();
}
/**
* Create an instance of {@link ArtistID3 }
*/
public ArtistID3 createArtistID3() {
return new ArtistID3();
}
/**
* Create an instance of {@link AlbumID3 }
*/
public AlbumID3 createAlbumID3() {
return new AlbumID3();
}
/**
* Create an instance of {@link Captions }
*/
public Captions createCaptions() {
return new Captions();
}
/**
* Create an instance of {@link AudioTrack }
*/
public AudioTrack createAudioTrack() {
return new AudioTrack();
}
/**
* Create an instance of {@link VideoConversion }
*/
public VideoConversion createVideoConversion() {
return new VideoConversion();
}
/**
* Create an instance of {@link NowPlayingEntry }
*/
public NowPlayingEntry createNowPlayingEntry() {
return new NowPlayingEntry();
}
/**
* Create an instance of {@link Playlist }
*/
public Playlist createPlaylist() {
return new Playlist();
}
/**
* Create an instance of {@link ChatMessage }
*/
public ChatMessage createChatMessage() {
return new ChatMessage();
}
/**
* Create an instance of {@link PodcastChannel }
*/
public PodcastChannel createPodcastChannel() {
return new PodcastChannel();
}
/**
* Create an instance of {@link PodcastEpisode }
*/
public PodcastEpisode createPodcastEpisode() {
return new PodcastEpisode();
}
/**
* Create an instance of {@link InternetRadioStation }
*/
public InternetRadioStation createInternetRadioStation() {
return new InternetRadioStation();
}
/**
* Create an instance of {@link Bookmark }
*/
public Bookmark createBookmark() {
return new Bookmark();
}
/**
* Create an instance of {@link Share }
*/
public Share createShare() {
return new Share();
}
/**
* Create an instance of {@link ArtistInfoBase }
*/
public ArtistInfoBase createArtistInfoBase() {
return new ArtistInfoBase();
}
}

View file

@ -0,0 +1,141 @@
package com.cappielloantonio.play.subsonic.models;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
public class PlayQueue {
protected List<Child> entries;
protected Integer current;
protected Long position;
protected String username;
protected LocalDateTime changed;
protected String changedBy;
/**
* Gets the value of the entries property.
*
* <p>
* 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 <CODE>set</CODE> method for the entries property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getEntries().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getEntries() {
if (entries == null) {
entries = new ArrayList<Child>();
}
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;
}
}

View file

@ -0,0 +1,234 @@
package com.cappielloantonio.play.subsonic.models;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
public class Playlist {
protected List<String> allowedUsers;
protected String id;
protected String name;
protected String comment;
protected String owner;
protected Boolean _public;
protected int songCount;
protected int duration;
protected LocalDateTime created;
protected LocalDateTime changed;
protected String coverArtId;
/**
* Gets the value of the allowedUsers property.
*
* <p>
* 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 <CODE>set</CODE> method for the allowedUsers property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAllowedUsers().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*/
public List<String> getAllowedUsers() {
if (allowedUsers == null) {
allowedUsers = new ArrayList<String>();
}
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;
}
}

View file

@ -0,0 +1,35 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class PlaylistWithSongs extends Playlist {
protected List<Child> entries;
/**
* Gets the value of the entries property.
*
* <p>
* 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 <CODE>set</CODE> method for the entries property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getEntries().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getEntries() {
if (entries == null) {
entries = new ArrayList<Child>();
}
return this.entries;
}
}

View file

@ -0,0 +1,35 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class Playlists {
protected List<Playlist> playlists;
/**
* Gets the value of the playlists property.
*
* <p>
* 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 <CODE>set</CODE> method for the playlists property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getPlaylists().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Playlist }
*/
public List<Playlist> getPlaylists() {
if (playlists == null) {
playlists = new ArrayList<Playlist>();
}
return this.playlists;
}
}

View file

@ -0,0 +1,203 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class PodcastChannel {
protected List<PodcastEpisode> episodes;
protected String id;
protected String url;
protected String title;
protected String description;
protected String coverArtId;
protected String originalImageUrl;
protected PodcastStatus status;
protected String errorMessage;
/**
* Gets the value of the episodes property.
*
* <p>
* 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 <CODE>set</CODE> method for the episodes property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getEpisodes().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link PodcastEpisode }
*/
public List<PodcastEpisode> getEpisodes() {
if (episodes == null) {
episodes = new ArrayList<PodcastEpisode>();
}
return this.episodes;
}
/**
* 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 url property.
*
* @return possible object is
* {@link String }
*/
public String getUrl() {
return url;
}
/**
* Sets the value of the url property.
*
* @param value allowed object is
* {@link String }
*/
public void setUrl(String value) {
this.url = value;
}
/**
* Gets the value of the title property.
*
* @return possible object is
* {@link String }
*/
public String getTitle() {
return title;
}
/**
* Sets the value of the title property.
*
* @param value allowed object is
* {@link String }
*/
public void setTitle(String value) {
this.title = value;
}
/**
* Gets the value of the description property.
*
* @return possible object is
* {@link String }
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value allowed object is
* {@link String }
*/
public void setDescription(String value) {
this.description = 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;
}
/**
* Gets the value of the originalImageUrl property.
*
* @return possible object is
* {@link String }
*/
public String getOriginalImageUrl() {
return originalImageUrl;
}
/**
* Sets the value of the originalImageUrl property.
*
* @param value allowed object is
* {@link String }
*/
public void setOriginalImageUrl(String value) {
this.originalImageUrl = value;
}
/**
* Gets the value of the status property.
*
* @return possible object is
* {@link PodcastStatus }
*/
public PodcastStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value allowed object is
* {@link PodcastStatus }
*/
public void setStatus(PodcastStatus value) {
this.status = value;
}
/**
* Gets the value of the errorMessage property.
*
* @return possible object is
* {@link String }
*/
public String getErrorMessage() {
return errorMessage;
}
/**
* Sets the value of the errorMessage property.
*
* @param value allowed object is
* {@link String }
*/
public void setErrorMessage(String value) {
this.errorMessage = value;
}
}

View file

@ -0,0 +1,111 @@
package com.cappielloantonio.play.subsonic.models;
import java.time.LocalDateTime;
public class PodcastEpisode extends Child {
protected String streamId;
protected String channelId;
protected String description;
protected PodcastStatus status;
protected LocalDateTime publishDate;
/**
* Gets the value of the streamId property.
*
* @return possible object is
* {@link String }
*/
public String getStreamId() {
return streamId;
}
/**
* Sets the value of the streamId property.
*
* @param value allowed object is
* {@link String }
*/
public void setStreamId(String value) {
this.streamId = value;
}
/**
* Gets the value of the channelId property.
*
* @return possible object is
* {@link String }
*/
public String getChannelId() {
return channelId;
}
/**
* Sets the value of the channelId property.
*
* @param value allowed object is
* {@link String }
*/
public void setChannelId(String value) {
this.channelId = value;
}
/**
* Gets the value of the description property.
*
* @return possible object is
* {@link String }
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value allowed object is
* {@link String }
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the status property.
*
* @return possible object is
* {@link PodcastStatus }
*/
public PodcastStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value allowed object is
* {@link PodcastStatus }
*/
public void setStatus(PodcastStatus value) {
this.status = value;
}
/**
* Gets the value of the publishDate property.
*
* @return possible object is
* {@link String }
*/
public LocalDateTime getPublishDate() {
return publishDate;
}
/**
* Sets the value of the publishDate property.
*
* @param value allowed object is
* {@link String }
*/
public void setPublishDate(LocalDateTime value) {
this.publishDate = value;
}
}

View file

@ -0,0 +1,29 @@
package com.cappielloantonio.play.subsonic.models;
public enum PodcastStatus {
NEW("new"),
DOWNLOADING("downloading"),
COMPLETED("completed"),
ERROR("error"),
DELETED("deleted"),
SKIPPED("skipped");
private final String value;
PodcastStatus(String v) {
value = v;
}
public String value() {
return value;
}
public static PodcastStatus fromValue(String v) {
for (PodcastStatus c : PodcastStatus.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}

View file

@ -0,0 +1,35 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class Podcasts {
protected List<PodcastChannel> channels;
/**
* Gets the value of the channels property.
*
* <p>
* 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 <CODE>set</CODE> method for the channels property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getChannels().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link PodcastChannel }
*/
public List<PodcastChannel> getChannels() {
if (channels == null) {
channels = new ArrayList<PodcastChannel>();
}
return this.channels;
}
}

View file

@ -0,0 +1,25 @@
package com.cappielloantonio.play.subsonic.models;
public enum ResponseStatus {
OK("ok"),
FAILED("failed");
private final String value;
ResponseStatus(String v) {
value = v;
}
public String value() {
return value;
}
public static ResponseStatus fromValue(String v) {
for (ResponseStatus c : ResponseStatus.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}

View file

@ -0,0 +1,40 @@
package com.cappielloantonio.play.subsonic.models;
public class ScanStatus {
protected boolean scanning;
protected Long count;
/**
* Gets the value of the scanning property.
*/
public boolean isScanning() {
return scanning;
}
/**
* Sets the value of the scanning property.
*/
public void setScanning(boolean value) {
this.scanning = value;
}
/**
* Gets the value of the count property.
*
* @return possible object is
* {@link Long }
*/
public Long getCount() {
return count;
}
/**
* Sets the value of the count property.
*
* @param value allowed object is
* {@link Long }
*/
public void setCount(Long value) {
this.count = value;
}
}

View file

@ -0,0 +1,65 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class SearchResult {
protected List<Child> matches;
protected int offset;
protected int totalHits;
/**
* Gets the value of the matches property.
*
* <p>
* 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 <CODE>set</CODE> method for the matches property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getMatches().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getMatches() {
if (matches == null) {
matches = new ArrayList<Child>();
}
return this.matches;
}
/**
* Gets the value of the offset property.
*/
public int getOffset() {
return offset;
}
/**
* Sets the value of the offset property.
*/
public void setOffset(int value) {
this.offset = value;
}
/**
* Gets the value of the totalHits property.
*/
public int getTotalHits() {
return totalHits;
}
/**
* Sets the value of the totalHits property.
*/
public void setTotalHits(int value) {
this.totalHits = value;
}
}

View file

@ -0,0 +1,91 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class SearchResult2 {
protected List<Artist> artists;
protected List<Child> albums;
protected List<Child> songs;
/**
* Gets the value of the artists property.
*
* <p>
* 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 <CODE>set</CODE> method for the artists property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getArtists().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Artist }
*/
public List<Artist> getArtists() {
if (artists == null) {
artists = new ArrayList<Artist>();
}
return this.artists;
}
/**
* Gets the value of the albums property.
*
* <p>
* 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 <CODE>set</CODE> method for the albums property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAlbums().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getAlbums() {
if (albums == null) {
albums = new ArrayList<Child>();
}
return this.albums;
}
/**
* Gets the value of the songs property.
*
* <p>
* 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 <CODE>set</CODE> method for the songs property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSongs().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getSongs() {
if (songs == null) {
songs = new ArrayList<Child>();
}
return this.songs;
}
}

View file

@ -0,0 +1,91 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class SearchResult3 {
protected List<ArtistID3> artists;
protected List<AlbumID3> albums;
protected List<Child> songs;
/**
* Gets the value of the artists property.
*
* <p>
* 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 <CODE>set</CODE> method for the artists property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getArtists().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ArtistID3 }
*/
public List<ArtistID3> getArtists() {
if (artists == null) {
artists = new ArrayList<ArtistID3>();
}
return this.artists;
}
/**
* Gets the value of the albums property.
*
* <p>
* 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 <CODE>set</CODE> method for the albums property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAlbums().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link AlbumID3 }
*/
public List<AlbumID3> getAlbums() {
if (albums == null) {
albums = new ArrayList<AlbumID3>();
}
return this.albums;
}
/**
* Gets the value of the songs property.
*
* <p>
* 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 <CODE>set</CODE> method for the songs property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSongs().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getSongs() {
if (songs == null) {
songs = new ArrayList<Child>();
}
return this.songs;
}
}

View file

@ -0,0 +1,198 @@
package com.cappielloantonio.play.subsonic.models;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
public class Share {
protected List<Child> entries;
protected String id;
protected String url;
protected String description;
protected String username;
protected LocalDateTime created;
protected LocalDateTime expires;
protected LocalDateTime lastVisited;
protected int visitCount;
/**
* Gets the value of the entries property.
*
* <p>
* 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 <CODE>set</CODE> method for the entries property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getEntries().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getEntries() {
if (entries == null) {
entries = new ArrayList<Child>();
}
return this.entries;
}
/**
* 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 url property.
*
* @return possible object is
* {@link String }
*/
public String getUrl() {
return url;
}
/**
* Sets the value of the url property.
*
* @param value allowed object is
* {@link String }
*/
public void setUrl(String value) {
this.url = value;
}
/**
* Gets the value of the description property.
*
* @return possible object is
* {@link String }
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value allowed object is
* {@link String }
*/
public void setDescription(String value) {
this.description = 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 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 expires property.
*
* @return possible object is
* {@link String }
*/
public LocalDateTime getExpires() {
return expires;
}
/**
* Sets the value of the expires property.
*
* @param value allowed object is
* {@link String }
*/
public void setExpires(LocalDateTime value) {
this.expires = value;
}
/**
* Gets the value of the lastVisited property.
*
* @return possible object is
* {@link String }
*/
public LocalDateTime getLastVisited() {
return lastVisited;
}
/**
* Sets the value of the lastVisited property.
*
* @param value allowed object is
* {@link String }
*/
public void setLastVisited(LocalDateTime value) {
this.lastVisited = value;
}
/**
* Gets the value of the visitCount property.
*/
public int getVisitCount() {
return visitCount;
}
/**
* Sets the value of the visitCount property.
*/
public void setVisitCount(int value) {
this.visitCount = value;
}
}

View file

@ -0,0 +1,35 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class Shares {
protected List<Share> shares;
/**
* Gets the value of the shares property.
*
* <p>
* 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 <CODE>set</CODE> method for the shares property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getShares().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Share }
*/
public List<Share> getShares() {
if (shares == null) {
shares = new ArrayList<Share>();
}
return this.shares;
}
}

View file

@ -0,0 +1,35 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class SimilarSongs {
protected List<Child> songs;
/**
* Gets the value of the songs property.
*
* <p>
* 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 <CODE>set</CODE> method for the songs property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSongs().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getSongs() {
if (songs == null) {
songs = new ArrayList<Child>();
}
return this.songs;
}
}

View file

@ -0,0 +1,35 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class SimilarSongs2 {
protected List<Child> songs;
/**
* Gets the value of the songs property.
*
* <p>
* 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 <CODE>set</CODE> method for the songs property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSongs().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getSongs() {
if (songs == null) {
songs = new ArrayList<Child>();
}
return this.songs;
}
}

View file

@ -0,0 +1,36 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class Songs {
protected List<Child> songs;
/**
* Gets the value of the songs property.
*
* <p>
* 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 <CODE>set</CODE> method for the songs property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSongs().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getSongs() {
if (songs == null) {
songs = new ArrayList<Child>();
}
return this.songs;
}
}

View file

@ -0,0 +1,91 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class Starred {
protected List<Artist> artists;
protected List<Child> albums;
protected List<Child> songs;
/**
* Gets the value of the artists property.
*
* <p>
* 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 <CODE>set</CODE> method for the artists property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getArtists().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Artist }
*/
public List<Artist> getArtists() {
if (artists == null) {
artists = new ArrayList<Artist>();
}
return this.artists;
}
/**
* Gets the value of the albums property.
*
* <p>
* 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 <CODE>set</CODE> method for the albums property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAlbums().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getAlbums() {
if (albums == null) {
albums = new ArrayList<Child>();
}
return this.albums;
}
/**
* Gets the value of the songs property.
*
* <p>
* 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 <CODE>set</CODE> method for the songs property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSongs().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getSongs() {
if (songs == null) {
songs = new ArrayList<Child>();
}
return this.songs;
}
}

View file

@ -0,0 +1,91 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class Starred2 {
protected List<ArtistID3> artists;
protected List<AlbumID3> albums;
protected List<Child> songs;
/**
* Gets the value of the artists property.
*
* <p>
* 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 <CODE>set</CODE> method for the artists property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getArtists().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ArtistID3 }
*/
public List<ArtistID3> getArtists() {
if (artists == null) {
artists = new ArrayList<ArtistID3>();
}
return this.artists;
}
/**
* Gets the value of the albums property.
*
* <p>
* 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 <CODE>set</CODE> method for the albums property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAlbums().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link AlbumID3 }
*/
public List<AlbumID3> getAlbums() {
if (albums == null) {
albums = new ArrayList<AlbumID3>();
}
return this.albums;
}
/**
* Gets the value of the songs property.
*
* <p>
* 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 <CODE>set</CODE> method for the songs property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSongs().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getSongs() {
if (songs == null) {
songs = new ArrayList<Child>();
}
return this.songs;
}
}

View file

@ -0,0 +1,950 @@
package com.cappielloantonio.play.subsonic.models;
public class SubsonicResponse {
protected Error error;
protected ScanStatus scanStatus;
protected TopSongs topSongs;
protected SimilarSongs2 similarSongs2;
protected SimilarSongs similarSongs;
protected ArtistInfo2 artistInfo2;
protected ArtistInfo artistInfo;
protected AlbumInfo albumInfo;
protected Starred2 starred2;
protected Starred starred;
protected Shares shares;
protected PlayQueue playQueue;
protected Bookmarks bookmarks;
protected InternetRadioStations internetRadioStations;
protected NewestPodcasts newestPodcasts;
protected Podcasts podcasts;
protected Lyrics lyrics;
protected Songs songsByGenre;
protected Songs randomSongs;
protected AlbumList2 albumList2;
protected AlbumList albumList;
protected ChatMessages chatMessages;
protected User user;
protected Users users;
protected License license;
protected JukeboxPlaylist jukeboxPlaylist;
protected JukeboxStatus jukeboxStatus;
protected PlaylistWithSongs playlist;
protected Playlists playlists;
protected SearchResult3 searchResult3;
protected SearchResult2 searchResult2;
protected SearchResult searchResult;
protected NowPlaying nowPlaying;
protected VideoInfo videoInfo;
protected Videos videos;
protected Child song;
protected AlbumWithSongsID3 album;
protected ArtistWithAlbumsID3 artist;
protected ArtistsID3 artists;
protected Genres genres;
protected Directory directory;
protected Indexes indexes;
protected MusicFolders musicFolders;
protected ResponseStatus status;
protected String version;
/**
* Gets the value of the error property.
*
* @return possible object is
* {@link Error }
*/
public Error getError() {
return error;
}
/**
* Sets the value of the error property.
*
* @param value allowed object is
* {@link Error }
*/
public void setError(Error value) {
this.error = value;
}
/**
* Gets the value of the scanStatus property.
*
* @return possible object is
* {@link ScanStatus }
*/
public ScanStatus getScanStatus() {
return scanStatus;
}
/**
* Sets the value of the scanStatus property.
*
* @param value allowed object is
* {@link ScanStatus }
*/
public void setScanStatus(ScanStatus value) {
this.scanStatus = value;
}
/**
* Gets the value of the topSongs property.
*
* @return possible object is
* {@link TopSongs }
*/
public TopSongs getTopSongs() {
return topSongs;
}
/**
* Sets the value of the topSongs property.
*
* @param value allowed object is
* {@link TopSongs }
*/
public void setTopSongs(TopSongs value) {
this.topSongs = value;
}
/**
* Gets the value of the similarSongs2 property.
*
* @return possible object is
* {@link SimilarSongs2 }
*/
public SimilarSongs2 getSimilarSongs2() {
return similarSongs2;
}
/**
* Sets the value of the similarSongs2 property.
*
* @param value allowed object is
* {@link SimilarSongs2 }
*/
public void setSimilarSongs2(SimilarSongs2 value) {
this.similarSongs2 = value;
}
/**
* Gets the value of the similarSongs property.
*
* @return possible object is
* {@link SimilarSongs }
*/
public SimilarSongs getSimilarSongs() {
return similarSongs;
}
/**
* Sets the value of the similarSongs property.
*
* @param value allowed object is
* {@link SimilarSongs }
*/
public void setSimilarSongs(SimilarSongs value) {
this.similarSongs = value;
}
/**
* Gets the value of the artistInfo2 property.
*
* @return possible object is
* {@link ArtistInfo2 }
*/
public ArtistInfo2 getArtistInfo2() {
return artistInfo2;
}
/**
* Sets the value of the artistInfo2 property.
*
* @param value allowed object is
* {@link ArtistInfo2 }
*/
public void setArtistInfo2(ArtistInfo2 value) {
this.artistInfo2 = value;
}
/**
* Gets the value of the artistInfo property.
*
* @return possible object is
* {@link ArtistInfo }
*/
public ArtistInfo getArtistInfo() {
return artistInfo;
}
/**
* Sets the value of the artistInfo property.
*
* @param value allowed object is
* {@link ArtistInfo }
*/
public void setArtistInfo(ArtistInfo value) {
this.artistInfo = value;
}
/**
* Gets the value of the albumInfo property.
*
* @return possible object is
* {@link AlbumInfo }
*/
public AlbumInfo getAlbumInfo() {
return albumInfo;
}
/**
* Sets the value of the albumInfo property.
*
* @param value allowed object is
* {@link AlbumInfo }
*/
public void setAlbumInfo(AlbumInfo value) {
this.albumInfo = value;
}
/**
* Gets the value of the starred2 property.
*
* @return possible object is
* {@link Starred2 }
*/
public Starred2 getStarred2() {
return starred2;
}
/**
* Sets the value of the starred2 property.
*
* @param value allowed object is
* {@link Starred2 }
*/
public void setStarred2(Starred2 value) {
this.starred2 = value;
}
/**
* Gets the value of the starred property.
*
* @return possible object is
* {@link Starred }
*/
public Starred getStarred() {
return starred;
}
/**
* Sets the value of the starred property.
*
* @param value allowed object is
* {@link Starred }
*/
public void setStarred(Starred value) {
this.starred = value;
}
/**
* Gets the value of the shares property.
*
* @return possible object is
* {@link Shares }
*/
public Shares getShares() {
return shares;
}
/**
* Sets the value of the shares property.
*
* @param value allowed object is
* {@link Shares }
*/
public void setShares(Shares value) {
this.shares = value;
}
/**
* Gets the value of the playQueue property.
*
* @return possible object is
* {@link PlayQueue }
*/
public PlayQueue getPlayQueue() {
return playQueue;
}
/**
* Sets the value of the playQueue property.
*
* @param value allowed object is
* {@link PlayQueue }
*/
public void setPlayQueue(PlayQueue value) {
this.playQueue = value;
}
/**
* Gets the value of the bookmarks property.
*
* @return possible object is
* {@link Bookmarks }
*/
public Bookmarks getBookmarks() {
return bookmarks;
}
/**
* Sets the value of the bookmarks property.
*
* @param value allowed object is
* {@link Bookmarks }
*/
public void setBookmarks(Bookmarks value) {
this.bookmarks = value;
}
/**
* Gets the value of the internetRadioStations property.
*
* @return possible object is
* {@link InternetRadioStations }
*/
public InternetRadioStations getInternetRadioStations() {
return internetRadioStations;
}
/**
* Sets the value of the internetRadioStations property.
*
* @param value allowed object is
* {@link InternetRadioStations }
*/
public void setInternetRadioStations(InternetRadioStations value) {
this.internetRadioStations = value;
}
/**
* Gets the value of the newestPodcasts property.
*
* @return possible object is
* {@link NewestPodcasts }
*/
public NewestPodcasts getNewestPodcasts() {
return newestPodcasts;
}
/**
* Sets the value of the newestPodcasts property.
*
* @param value allowed object is
* {@link NewestPodcasts }
*/
public void setNewestPodcasts(NewestPodcasts value) {
this.newestPodcasts = value;
}
/**
* Gets the value of the podcasts property.
*
* @return possible object is
* {@link Podcasts }
*/
public Podcasts getPodcasts() {
return podcasts;
}
/**
* Sets the value of the podcasts property.
*
* @param value allowed object is
* {@link Podcasts }
*/
public void setPodcasts(Podcasts value) {
this.podcasts = value;
}
/**
* Gets the value of the lyrics property.
*
* @return possible object is
* {@link Lyrics }
*/
public Lyrics getLyrics() {
return lyrics;
}
/**
* Sets the value of the lyrics property.
*
* @param value allowed object is
* {@link Lyrics }
*/
public void setLyrics(Lyrics value) {
this.lyrics = value;
}
/**
* Gets the value of the songsByGenre property.
*
* @return possible object is
* {@link Songs }
*/
public Songs getSongsByGenre() {
return songsByGenre;
}
/**
* Sets the value of the songsByGenre property.
*
* @param value allowed object is
* {@link Songs }
*/
public void setSongsByGenre(Songs value) {
this.songsByGenre = value;
}
/**
* Gets the value of the randomSongs property.
*
* @return possible object is
* {@link Songs }
*/
public Songs getRandomSongs() {
return randomSongs;
}
/**
* Sets the value of the randomSongs property.
*
* @param value allowed object is
* {@link Songs }
*/
public void setRandomSongs(Songs value) {
this.randomSongs = value;
}
/**
* Gets the value of the albumList2 property.
*
* @return possible object is
* {@link AlbumList2 }
*/
public AlbumList2 getAlbumList2() {
return albumList2;
}
/**
* Sets the value of the albumList2 property.
*
* @param value allowed object is
* {@link AlbumList2 }
*/
public void setAlbumList2(AlbumList2 value) {
this.albumList2 = value;
}
/**
* Gets the value of the albumList property.
*
* @return possible object is
* {@link AlbumList }
*/
public AlbumList getAlbumList() {
return albumList;
}
/**
* Sets the value of the albumList property.
*
* @param value allowed object is
* {@link AlbumList }
*/
public void setAlbumList(AlbumList value) {
this.albumList = value;
}
/**
* Gets the value of the chatMessages property.
*
* @return possible object is
* {@link ChatMessages }
*/
public ChatMessages getChatMessages() {
return chatMessages;
}
/**
* Sets the value of the chatMessages property.
*
* @param value allowed object is
* {@link ChatMessages }
*/
public void setChatMessages(ChatMessages value) {
this.chatMessages = value;
}
/**
* Gets the value of the user property.
*
* @return possible object is
* {@link User }
*/
public User getUser() {
return user;
}
/**
* Sets the value of the user property.
*
* @param value allowed object is
* {@link User }
*/
public void setUser(User value) {
this.user = value;
}
/**
* Gets the value of the users property.
*
* @return possible object is
* {@link Users }
*/
public Users getUsers() {
return users;
}
/**
* Sets the value of the users property.
*
* @param value allowed object is
* {@link Users }
*/
public void setUsers(Users value) {
this.users = value;
}
/**
* Gets the value of the license property.
*
* @return possible object is
* {@link License }
*/
public License getLicense() {
return license;
}
/**
* Sets the value of the license property.
*
* @param value allowed object is
* {@link License }
*/
public void setLicense(License value) {
this.license = value;
}
/**
* Gets the value of the jukeboxPlaylist property.
*
* @return possible object is
* {@link JukeboxPlaylist }
*/
public JukeboxPlaylist getJukeboxPlaylist() {
return jukeboxPlaylist;
}
/**
* Sets the value of the jukeboxPlaylist property.
*
* @param value allowed object is
* {@link JukeboxPlaylist }
*/
public void setJukeboxPlaylist(JukeboxPlaylist value) {
this.jukeboxPlaylist = value;
}
/**
* Gets the value of the jukeboxStatus property.
*
* @return possible object is
* {@link JukeboxStatus }
*/
public JukeboxStatus getJukeboxStatus() {
return jukeboxStatus;
}
/**
* Sets the value of the jukeboxStatus property.
*
* @param value allowed object is
* {@link JukeboxStatus }
*/
public void setJukeboxStatus(JukeboxStatus value) {
this.jukeboxStatus = value;
}
/**
* Gets the value of the playlist property.
*
* @return possible object is
* {@link PlaylistWithSongs }
*/
public PlaylistWithSongs getPlaylist() {
return playlist;
}
/**
* Sets the value of the playlist property.
*
* @param value allowed object is
* {@link PlaylistWithSongs }
*/
public void setPlaylist(PlaylistWithSongs value) {
this.playlist = value;
}
/**
* Gets the value of the playlists property.
*
* @return possible object is
* {@link Playlists }
*/
public Playlists getPlaylists() {
return playlists;
}
/**
* Sets the value of the playlists property.
*
* @param value allowed object is
* {@link Playlists }
*/
public void setPlaylists(Playlists value) {
this.playlists = value;
}
/**
* Gets the value of the searchResult3 property.
*
* @return possible object is
* {@link SearchResult3 }
*/
public SearchResult3 getSearchResult3() {
return searchResult3;
}
/**
* Sets the value of the searchResult3 property.
*
* @param value allowed object is
* {@link SearchResult3 }
*/
public void setSearchResult3(SearchResult3 value) {
this.searchResult3 = value;
}
/**
* Gets the value of the searchResult2 property.
*
* @return possible object is
* {@link SearchResult2 }
*/
public SearchResult2 getSearchResult2() {
return searchResult2;
}
/**
* Sets the value of the searchResult2 property.
*
* @param value allowed object is
* {@link SearchResult2 }
*/
public void setSearchResult2(SearchResult2 value) {
this.searchResult2 = value;
}
/**
* Gets the value of the searchResult property.
*
* @return possible object is
* {@link SearchResult }
*/
public SearchResult getSearchResult() {
return searchResult;
}
/**
* Sets the value of the searchResult property.
*
* @param value allowed object is
* {@link SearchResult }
*/
public void setSearchResult(SearchResult value) {
this.searchResult = value;
}
/**
* Gets the value of the nowPlaying property.
*
* @return possible object is
* {@link NowPlaying }
*/
public NowPlaying getNowPlaying() {
return nowPlaying;
}
/**
* Sets the value of the nowPlaying property.
*
* @param value allowed object is
* {@link NowPlaying }
*/
public void setNowPlaying(NowPlaying value) {
this.nowPlaying = value;
}
/**
* Gets the value of the videoInfo property.
*
* @return possible object is
* {@link VideoInfo }
*/
public VideoInfo getVideoInfo() {
return videoInfo;
}
/**
* Sets the value of the videoInfo property.
*
* @param value allowed object is
* {@link VideoInfo }
*/
public void setVideoInfo(VideoInfo value) {
this.videoInfo = value;
}
/**
* Gets the value of the videos property.
*
* @return possible object is
* {@link Videos }
*/
public Videos getVideos() {
return videos;
}
/**
* Sets the value of the videos property.
*
* @param value allowed object is
* {@link Videos }
*/
public void setVideos(Videos value) {
this.videos = value;
}
/**
* Gets the value of the song property.
*
* @return possible object is
* {@link Child }
*/
public Child getSong() {
return song;
}
/**
* Sets the value of the song property.
*
* @param value allowed object is
* {@link Child }
*/
public void setSong(Child value) {
this.song = value;
}
/**
* Gets the value of the album property.
*
* @return possible object is
* {@link AlbumWithSongsID3 }
*/
public AlbumWithSongsID3 getAlbum() {
return album;
}
/**
* Sets the value of the album property.
*
* @param value allowed object is
* {@link AlbumWithSongsID3 }
*/
public void setAlbum(AlbumWithSongsID3 value) {
this.album = value;
}
/**
* Gets the value of the artist property.
*
* @return possible object is
* {@link ArtistWithAlbumsID3 }
*/
public ArtistWithAlbumsID3 getArtist() {
return artist;
}
/**
* Sets the value of the artist property.
*
* @param value allowed object is
* {@link ArtistWithAlbumsID3 }
*/
public void setArtist(ArtistWithAlbumsID3 value) {
this.artist = value;
}
/**
* Gets the value of the artists property.
*
* @return possible object is
* {@link ArtistsID3 }
*/
public ArtistsID3 getArtists() {
return artists;
}
/**
* Sets the value of the artists property.
*
* @param value allowed object is
* {@link ArtistsID3 }
*/
public void setArtists(ArtistsID3 value) {
this.artists = value;
}
/**
* Gets the value of the genres property.
*
* @return possible object is
* {@link Genres }
*/
public Genres getGenres() {
return genres;
}
/**
* Sets the value of the genres property.
*
* @param value allowed object is
* {@link Genres }
*/
public void setGenres(Genres value) {
this.genres = value;
}
/**
* Gets the value of the directory property.
*
* @return possible object is
* {@link Directory }
*/
public Directory getDirectory() {
return directory;
}
/**
* Sets the value of the directory property.
*
* @param value allowed object is
* {@link Directory }
*/
public void setDirectory(Directory value) {
this.directory = value;
}
/**
* Gets the value of the indexes property.
*
* @return possible object is
* {@link Indexes }
*/
public Indexes getIndexes() {
return indexes;
}
/**
* Sets the value of the indexes property.
*
* @param value allowed object is
* {@link Indexes }
*/
public void setIndexes(Indexes value) {
this.indexes = value;
}
/**
* Gets the value of the musicFolders property.
*
* @return possible object is
* {@link MusicFolders }
*/
public MusicFolders getMusicFolders() {
return musicFolders;
}
/**
* Sets the value of the musicFolders property.
*
* @param value allowed object is
* {@link MusicFolders }
*/
public void setMusicFolders(MusicFolders value) {
this.musicFolders = value;
}
/**
* Gets the value of the status property.
*
* @return possible object is
* {@link ResponseStatus }
*/
public ResponseStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value allowed object is
* {@link ResponseStatus }
*/
public void setStatus(ResponseStatus value) {
this.status = value;
}
/**
* Gets the value of the version property.
*
* @return possible object is
* {@link String }
*/
public String getVersion() {
return version;
}
/**
* Sets the value of the version property.
*
* @param value allowed object is
* {@link String }
*/
public void setVersion(String value) {
this.version = value;
}
}

View file

@ -0,0 +1,35 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class TopSongs {
protected List<Child> songs;
/**
* Gets the value of the songs property.
*
* <p>
* 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 <CODE>set</CODE> method for the songs property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSongs().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getSongs() {
if (songs == null) {
songs = new ArrayList<Child>();
}
return this.songs;
}
}

View file

@ -0,0 +1,315 @@
package com.cappielloantonio.play.subsonic.models;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
public class User {
protected List<Integer> folders;
protected String username;
protected String email;
protected boolean scrobblingEnabled;
protected Integer maxBitRate;
protected boolean adminRole;
protected boolean settingsRole;
protected boolean downloadRole;
protected boolean uploadRole;
protected boolean playlistRole;
protected boolean coverArtRole;
protected boolean commentRole;
protected boolean podcastRole;
protected boolean streamRole;
protected boolean jukeboxRole;
protected boolean shareRole;
protected boolean videoConversionRole;
protected LocalDateTime avatarLastChanged;
/**
* Gets the value of the folders property.
*
* <p>
* 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 <CODE>set</CODE> method for the folders property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getFolders().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Integer }
*/
public List<Integer> getFolders() {
if (folders == null) {
folders = new ArrayList<Integer>();
}
return this.folders;
}
/**
* 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 email property.
*
* @return possible object is
* {@link String }
*/
public String getEmail() {
return email;
}
/**
* Sets the value of the email property.
*
* @param value allowed object is
* {@link String }
*/
public void setEmail(String value) {
this.email = value;
}
/**
* Gets the value of the scrobblingEnabled property.
*/
public boolean isScrobblingEnabled() {
return scrobblingEnabled;
}
/**
* Sets the value of the scrobblingEnabled property.
*/
public void setScrobblingEnabled(boolean value) {
this.scrobblingEnabled = value;
}
/**
* Gets the value of the maxBitRate property.
*
* @return possible object is
* {@link Integer }
*/
public Integer getMaxBitRate() {
return maxBitRate;
}
/**
* Sets the value of the maxBitRate property.
*
* @param value allowed object is
* {@link Integer }
*/
public void setMaxBitRate(Integer value) {
this.maxBitRate = value;
}
/**
* Gets the value of the adminRole property.
*/
public boolean isAdminRole() {
return adminRole;
}
/**
* Sets the value of the adminRole property.
*/
public void setAdminRole(boolean value) {
this.adminRole = value;
}
/**
* Gets the value of the settingsRole property.
*/
public boolean isSettingsRole() {
return settingsRole;
}
/**
* Sets the value of the settingsRole property.
*/
public void setSettingsRole(boolean value) {
this.settingsRole = value;
}
/**
* Gets the value of the downloadRole property.
*/
public boolean isDownloadRole() {
return downloadRole;
}
/**
* Sets the value of the downloadRole property.
*/
public void setDownloadRole(boolean value) {
this.downloadRole = value;
}
/**
* Gets the value of the uploadRole property.
*/
public boolean isUploadRole() {
return uploadRole;
}
/**
* Sets the value of the uploadRole property.
*/
public void setUploadRole(boolean value) {
this.uploadRole = value;
}
/**
* Gets the value of the playlistRole property.
*/
public boolean isPlaylistRole() {
return playlistRole;
}
/**
* Sets the value of the playlistRole property.
*/
public void setPlaylistRole(boolean value) {
this.playlistRole = value;
}
/**
* Gets the value of the coverArtRole property.
*/
public boolean isCoverArtRole() {
return coverArtRole;
}
/**
* Sets the value of the coverArtRole property.
*/
public void setCoverArtRole(boolean value) {
this.coverArtRole = value;
}
/**
* Gets the value of the commentRole property.
*/
public boolean isCommentRole() {
return commentRole;
}
/**
* Sets the value of the commentRole property.
*/
public void setCommentRole(boolean value) {
this.commentRole = value;
}
/**
* Gets the value of the podcastRole property.
*/
public boolean isPodcastRole() {
return podcastRole;
}
/**
* Sets the value of the podcastRole property.
*/
public void setPodcastRole(boolean value) {
this.podcastRole = value;
}
/**
* Gets the value of the streamRole property.
*/
public boolean isStreamRole() {
return streamRole;
}
/**
* Sets the value of the streamRole property.
*/
public void setStreamRole(boolean value) {
this.streamRole = value;
}
/**
* Gets the value of the jukeboxRole property.
*/
public boolean isJukeboxRole() {
return jukeboxRole;
}
/**
* Sets the value of the jukeboxRole property.
*/
public void setJukeboxRole(boolean value) {
this.jukeboxRole = value;
}
/**
* Gets the value of the shareRole property.
*/
public boolean isShareRole() {
return shareRole;
}
/**
* Sets the value of the shareRole property.
*/
public void setShareRole(boolean value) {
this.shareRole = value;
}
/**
* Gets the value of the videoConversionRole property.
*/
public boolean isVideoConversionRole() {
return videoConversionRole;
}
/**
* Sets the value of the videoConversionRole property.
*/
public void setVideoConversionRole(boolean value) {
this.videoConversionRole = value;
}
/**
* Gets the value of the avatarLastChanged property.
*
* @return possible object is
* {@link String }
*/
public LocalDateTime getAvatarLastChanged() {
return avatarLastChanged;
}
/**
* Sets the value of the avatarLastChanged property.
*
* @param value allowed object is
* {@link String }
*/
public void setAvatarLastChanged(LocalDateTime value) {
this.avatarLastChanged = value;
}
}

View file

@ -0,0 +1,35 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class Users {
protected List<User> users;
/**
* Gets the value of the users property.
*
* <p>
* 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 <CODE>set</CODE> method for the users property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getUsers().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link User }
*/
public List<User> getUsers() {
if (users == null) {
users = new ArrayList<User>();
}
return this.users;
}
}

View file

@ -0,0 +1,67 @@
package com.cappielloantonio.play.subsonic.models;
public class VideoConversion {
protected String id;
protected Integer bitRate;
protected Integer audioTrackId;
/**
* 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 bitRate property.
*
* @return possible object is
* {@link Integer }
*/
public Integer getBitRate() {
return bitRate;
}
/**
* Sets the value of the bitRate property.
*
* @param value allowed object is
* {@link Integer }
*/
public void setBitRate(Integer value) {
this.bitRate = value;
}
/**
* Gets the value of the audioTrackId property.
*
* @return possible object is
* {@link Integer }
*/
public Integer getAudioTrackId() {
return audioTrackId;
}
/**
* Sets the value of the audioTrackId property.
*
* @param value allowed object is
* {@link Integer }
*/
public void setAudioTrackId(Integer value) {
this.audioTrackId = value;
}
}

View file

@ -0,0 +1,112 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class VideoInfo {
protected List<Captions> captions;
protected List<AudioTrack> audioTracks;
protected List<VideoConversion> conversions;
protected String id;
/**
* Gets the value of the captions property.
*
* <p>
* 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 <CODE>set</CODE> method for the captions property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getCaptions().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Captions }
*/
public List<Captions> getCaptions() {
if (captions == null) {
captions = new ArrayList<Captions>();
}
return this.captions;
}
/**
* Gets the value of the audioTracks property.
*
* <p>
* 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 <CODE>set</CODE> method for the audioTracks property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAudioTracks().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link AudioTrack }
*/
public List<AudioTrack> getAudioTracks() {
if (audioTracks == null) {
audioTracks = new ArrayList<AudioTrack>();
}
return this.audioTracks;
}
/**
* Gets the value of the conversions property.
*
* <p>
* 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 <CODE>set</CODE> method for the conversions property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getConversions().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link VideoConversion }
*/
public List<VideoConversion> getConversions() {
if (conversions == null) {
conversions = new ArrayList<VideoConversion>();
}
return this.conversions;
}
/**
* 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;
}
}

View file

@ -0,0 +1,35 @@
package com.cappielloantonio.play.subsonic.models;
import java.util.ArrayList;
import java.util.List;
public class Videos {
protected List<Child> videos;
/**
* Gets the value of the videos property.
*
* <p>
* 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 <CODE>set</CODE> method for the videos property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getVideos().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Child }
*/
public List<Child> getVideos() {
if (videos == null) {
videos = new ArrayList<Child>();
}
return this.videos;
}
}