From 3fa634df397a54c09b12b2af1f1a176189282c2a Mon Sep 17 00:00:00 2001 From: CappielloAntonio Date: Sat, 24 Jul 2021 12:27:06 +0200 Subject: [PATCH] Added Subsonic models --- .../play/subsonic/models/AlbumID3.java | 247 +++++ .../play/subsonic/models/AlbumInfo.java | 131 +++ .../play/subsonic/models/AlbumList.java | 35 + .../play/subsonic/models/AlbumList2.java | 36 + .../subsonic/models/AlbumWithSongsID3.java | 36 + .../play/subsonic/models/Artist.java | 112 +++ .../play/subsonic/models/ArtistID3.java | 106 ++ .../play/subsonic/models/ArtistInfo.java | 36 + .../play/subsonic/models/ArtistInfo2.java | 36 + .../play/subsonic/models/ArtistInfoBase.java | 130 +++ .../subsonic/models/ArtistWithAlbumsID3.java | 35 + .../play/subsonic/models/ArtistsID3.java | 56 ++ .../play/subsonic/models/AudioTrack.java | 67 ++ .../play/subsonic/models/Bookmark.java | 126 +++ .../play/subsonic/models/Bookmarks.java | 36 + .../play/subsonic/models/Captions.java | 46 + .../play/subsonic/models/ChatMessage.java | 61 ++ .../play/subsonic/models/ChatMessages.java | 35 + .../play/subsonic/models/Child.java | 651 ++++++++++++ .../play/subsonic/models/Directory.java | 183 ++++ .../play/subsonic/models/Error.java | 46 + .../play/subsonic/models/ErrorCode.java | 31 + .../play/subsonic/models/Genre.java | 55 + .../play/subsonic/models/Genres.java | 35 + .../play/subsonic/models/Index.java | 56 ++ .../play/subsonic/models/IndexID3.java | 56 ++ .../play/subsonic/models/Indexes.java | 127 +++ .../subsonic/models/InternetRadioStation.java | 88 ++ .../models/InternetRadioStations.java | 36 + .../play/subsonic/models/JukeboxPlaylist.java | 35 + .../play/subsonic/models/JukeboxStatus.java | 70 ++ .../play/subsonic/models/License.java | 84 ++ .../play/subsonic/models/Lyrics.java | 67 ++ .../play/subsonic/models/MediaType.java | 27 + .../play/subsonic/models/MusicFolder.java | 40 + .../play/subsonic/models/MusicFolders.java | 36 + .../play/subsonic/models/NewestPodcasts.java | 35 + .../play/subsonic/models/NowPlaying.java | 35 + .../play/subsonic/models/NowPlayingEntry.java | 76 ++ .../play/subsonic/models/ObjectFactory.java | 443 ++++++++ .../play/subsonic/models/PlayQueue.java | 141 +++ .../play/subsonic/models/Playlist.java | 234 +++++ .../subsonic/models/PlaylistWithSongs.java | 35 + .../play/subsonic/models/Playlists.java | 35 + .../play/subsonic/models/PodcastChannel.java | 203 ++++ .../play/subsonic/models/PodcastEpisode.java | 111 ++ .../play/subsonic/models/PodcastStatus.java | 29 + .../play/subsonic/models/Podcasts.java | 35 + .../play/subsonic/models/ResponseStatus.java | 25 + .../play/subsonic/models/ScanStatus.java | 40 + .../play/subsonic/models/SearchResult.java | 65 ++ .../play/subsonic/models/SearchResult2.java | 91 ++ .../play/subsonic/models/SearchResult3.java | 91 ++ .../play/subsonic/models/Share.java | 198 ++++ .../play/subsonic/models/Shares.java | 35 + .../play/subsonic/models/SimilarSongs.java | 35 + .../play/subsonic/models/SimilarSongs2.java | 35 + .../play/subsonic/models/Songs.java | 36 + .../play/subsonic/models/Starred.java | 91 ++ .../play/subsonic/models/Starred2.java | 91 ++ .../subsonic/models/SubsonicResponse.java | 950 ++++++++++++++++++ .../play/subsonic/models/TopSongs.java | 35 + .../play/subsonic/models/User.java | 315 ++++++ .../play/subsonic/models/Users.java | 35 + .../play/subsonic/models/VideoConversion.java | 67 ++ .../play/subsonic/models/VideoInfo.java | 112 +++ .../play/subsonic/models/Videos.java | 35 + 67 files changed, 6884 insertions(+) create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumID3.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumInfo.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumList.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumList2.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumWithSongsID3.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Artist.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistID3.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistInfo.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistInfo2.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistInfoBase.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistWithAlbumsID3.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistsID3.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/AudioTrack.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Bookmark.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Bookmarks.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Captions.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/ChatMessage.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/ChatMessages.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Child.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Directory.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Error.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/ErrorCode.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Genre.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Genres.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Index.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/IndexID3.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Indexes.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/InternetRadioStation.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/InternetRadioStations.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/JukeboxPlaylist.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/JukeboxStatus.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/License.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Lyrics.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/MediaType.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/MusicFolder.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/MusicFolders.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/NewestPodcasts.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/NowPlaying.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/NowPlayingEntry.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/ObjectFactory.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/PlayQueue.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Playlist.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/PlaylistWithSongs.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Playlists.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/PodcastChannel.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/PodcastEpisode.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/PodcastStatus.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Podcasts.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/ResponseStatus.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/ScanStatus.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/SearchResult.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/SearchResult2.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/SearchResult3.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Share.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Shares.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/SimilarSongs.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/SimilarSongs2.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Songs.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Starred.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Starred2.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/SubsonicResponse.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/TopSongs.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/User.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Users.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/VideoConversion.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/VideoInfo.java create mode 100644 app/src/main/java/com/cappielloantonio/play/subsonic/models/Videos.java diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumID3.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumID3.java new file mode 100644 index 00000000..0f6e7452 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumID3.java @@ -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; + } + +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumInfo.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumInfo.java new file mode 100644 index 00000000..7dd9d2c2 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumInfo.java @@ -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; + } + +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumList.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumList.java new file mode 100644 index 00000000..2f5a2945 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumList.java @@ -0,0 +1,35 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class AlbumList { + protected List albums; + + /** + * Gets the value of the albums property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the albums property. + * + *

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

+     *    getAlbums().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getAlbums() { + if (albums == null) { + albums = new ArrayList(); + } + return this.albums; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumList2.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumList2.java new file mode 100644 index 00000000..97999c19 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumList2.java @@ -0,0 +1,36 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class AlbumList2 { + protected List albums; + + /** + * Gets the value of the albums property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the albums property. + * + *

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

+     *    getAlbums().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AlbumID3 } + */ + public List getAlbums() { + if (albums == null) { + albums = new ArrayList(); + } + return this.albums; + } + +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumWithSongsID3.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumWithSongsID3.java new file mode 100644 index 00000000..a959c7bb --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/AlbumWithSongsID3.java @@ -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 songs; + + /** + * Gets the value of the songs property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the songs property. + * + *

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

+     *    getSongs().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getSongs() { + if (songs == null) { + songs = new ArrayList(); + } + return this.songs; + } + +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Artist.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Artist.java new file mode 100644 index 00000000..e51cc54c --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Artist.java @@ -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; + } + +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistID3.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistID3.java new file mode 100644 index 00000000..36198387 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistID3.java @@ -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; + } + +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistInfo.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistInfo.java new file mode 100644 index 00000000..b162f721 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistInfo.java @@ -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 similarArtists; + + /** + * Gets the value of the similarArtists property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the similarArtists property. + * + *

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

+     *    getSimilarArtists().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Artist } + */ + public List getSimilarArtists() { + if (similarArtists == null) { + similarArtists = new ArrayList(); + } + return this.similarArtists; + } + +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistInfo2.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistInfo2.java new file mode 100644 index 00000000..46d910a9 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistInfo2.java @@ -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 similarArtists; + + /** + * Gets the value of the similarArtists property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the similarArtists property. + * + *

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

+     *    getSimilarArtists().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ArtistID3 } + */ + public List getSimilarArtists() { + if (similarArtists == null) { + similarArtists = new ArrayList(); + } + return this.similarArtists; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistInfoBase.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistInfoBase.java new file mode 100644 index 00000000..178e92b3 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistInfoBase.java @@ -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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistWithAlbumsID3.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistWithAlbumsID3.java new file mode 100644 index 00000000..280540c9 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistWithAlbumsID3.java @@ -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 albums; + + /** + * Gets the value of the albums property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the albums property. + * + *

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

+     *    getAlbums().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AlbumID3 } + */ + public List getAlbums() { + if (albums == null) { + albums = new ArrayList(); + } + return this.albums; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistsID3.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistsID3.java new file mode 100644 index 00000000..9984f548 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ArtistsID3.java @@ -0,0 +1,56 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class ArtistsID3 { + protected List indices; + protected String ignoredArticles; + + /** + * Gets the value of the indices property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the indices property. + * + *

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

+     *    getIndices().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link IndexID3 } + */ + public List getIndices() { + if (indices == null) { + indices = new ArrayList(); + } + 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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/AudioTrack.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/AudioTrack.java new file mode 100644 index 00000000..740d66ec --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/AudioTrack.java @@ -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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Bookmark.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Bookmark.java new file mode 100644 index 00000000..6eee6d43 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Bookmark.java @@ -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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Bookmarks.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Bookmarks.java new file mode 100644 index 00000000..d259e43e --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Bookmarks.java @@ -0,0 +1,36 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class Bookmarks { + protected List bookmarks; + + /** + * Gets the value of the bookmarks property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the bookmarks property. + * + *

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

+     *    getBookmarks().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Bookmark } + */ + public List getBookmarks() { + if (bookmarks == null) { + bookmarks = new ArrayList(); + } + return this.bookmarks; + } + +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Captions.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Captions.java new file mode 100644 index 00000000..2754cd90 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Captions.java @@ -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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/ChatMessage.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ChatMessage.java new file mode 100644 index 00000000..e8bb7266 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ChatMessage.java @@ -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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/ChatMessages.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ChatMessages.java new file mode 100644 index 00000000..953c822a --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ChatMessages.java @@ -0,0 +1,35 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class ChatMessages { + protected List chatMessages; + + /** + * Gets the value of the chatMessages property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the chatMessages property. + * + *

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

+     *    getChatMessages().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ChatMessage } + */ + public List getChatMessages() { + if (chatMessages == null) { + chatMessages = new ArrayList(); + } + return this.chatMessages; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Child.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Child.java new file mode 100644 index 00000000..61bd8f6f --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Child.java @@ -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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Directory.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Directory.java new file mode 100644 index 00000000..087852af --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Directory.java @@ -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 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. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the children property. + * + *

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

+     *    getchildren().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getchildren() { + if (children == null) { + children = new ArrayList(); + } + 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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Error.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Error.java new file mode 100644 index 00000000..3cca38f4 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Error.java @@ -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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/ErrorCode.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ErrorCode.java new file mode 100644 index 00000000..d888a6de --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ErrorCode.java @@ -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)); + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Genre.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Genre.java new file mode 100644 index 00000000..22173424 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Genre.java @@ -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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Genres.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Genres.java new file mode 100644 index 00000000..2c7a22d7 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Genres.java @@ -0,0 +1,35 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class Genres { + protected List genres; + + /** + * Gets the value of the genres property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the genres property. + * + *

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

+     *    getGenres().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Genre } + */ + public List getGenres() { + if (genres == null) { + genres = new ArrayList(); + } + return this.genres; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Index.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Index.java new file mode 100644 index 00000000..ba7dcbbc --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Index.java @@ -0,0 +1,56 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class Index { + protected List artists; + protected String name; + + /** + * Gets the value of the artists property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the artists property. + * + *

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

+     *    getArtists().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Artist } + */ + public List getArtists() { + if (artists == null) { + artists = new ArrayList(); + } + 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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/IndexID3.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/IndexID3.java new file mode 100644 index 00000000..5b47b670 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/IndexID3.java @@ -0,0 +1,56 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class IndexID3 { + protected List artists; + protected String name; + + /** + * Gets the value of the artists property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the artists property. + * + *

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

+     *    getArtists().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ArtistID3 } + */ + public List getArtists() { + if (artists == null) { + artists = new ArrayList(); + } + 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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Indexes.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Indexes.java new file mode 100644 index 00000000..7ebdecc2 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Indexes.java @@ -0,0 +1,127 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class Indexes { + protected List shortcuts; + protected List indices; + protected List children; + protected long lastModified; + protected String ignoredArticles; + + /** + * Gets the value of the shortcuts property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the shortcuts property. + * + *

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

+     *    getShortcuts().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Artist } + */ + public List getShortcuts() { + if (shortcuts == null) { + shortcuts = new ArrayList(); + } + return this.shortcuts; + } + + /** + * Gets the value of the indices property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the indices property. + * + *

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

+     *    getIndices().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Index } + */ + public List getIndices() { + if (indices == null) { + indices = new ArrayList(); + } + return this.indices; + } + + /** + * Gets the value of the children property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the children property. + * + *

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

+     *    getchildren().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getchildren() { + if (children == null) { + children = new ArrayList(); + } + 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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/InternetRadioStation.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/InternetRadioStation.java new file mode 100644 index 00000000..868dbe9b --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/InternetRadioStation.java @@ -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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/InternetRadioStations.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/InternetRadioStations.java new file mode 100644 index 00000000..926810f2 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/InternetRadioStations.java @@ -0,0 +1,36 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class InternetRadioStations { + protected List internetRadioStations; + + /** + * Gets the value of the internetRadioStations property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the internetRadioStations property. + * + *

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

+     *    getInternetRadioStations().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link InternetRadioStation } + */ + public List getInternetRadioStations() { + if (internetRadioStations == null) { + internetRadioStations = new ArrayList(); + } + return this.internetRadioStations; + } + +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/JukeboxPlaylist.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/JukeboxPlaylist.java new file mode 100644 index 00000000..005d7265 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/JukeboxPlaylist.java @@ -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 entries; + + /** + * Gets the value of the entries property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the entries property. + * + *

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

+     *    getEntries().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getEntries() { + if (entries == null) { + entries = new ArrayList(); + } + return this.entries; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/JukeboxStatus.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/JukeboxStatus.java new file mode 100644 index 00000000..ac950797 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/JukeboxStatus.java @@ -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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/License.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/License.java new file mode 100644 index 00000000..0dcfea07 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/License.java @@ -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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Lyrics.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Lyrics.java new file mode 100644 index 00000000..2cb016fb --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Lyrics.java @@ -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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/MediaType.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/MediaType.java new file mode 100644 index 00000000..5c2498f7 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/MediaType.java @@ -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); + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/MusicFolder.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/MusicFolder.java new file mode 100644 index 00000000..159a20ae --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/MusicFolder.java @@ -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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/MusicFolders.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/MusicFolders.java new file mode 100644 index 00000000..393c1a42 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/MusicFolders.java @@ -0,0 +1,36 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class MusicFolders { + protected List musicFolders; + + /** + * Gets the value of the musicFolders property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the musicFolders property. + * + *

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

+     *    getMusicFolders().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link MusicFolder } + */ + public List getMusicFolders() { + if (musicFolders == null) { + musicFolders = new ArrayList(); + } + return this.musicFolders; + } + +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/NewestPodcasts.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/NewestPodcasts.java new file mode 100644 index 00000000..771eab93 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/NewestPodcasts.java @@ -0,0 +1,35 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class NewestPodcasts { + protected List episodes; + + /** + * Gets the value of the episodes property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the episodes property. + * + *

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

+     *    getEpisodes().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PodcastEpisode } + */ + public List getEpisodes() { + if (episodes == null) { + episodes = new ArrayList(); + } + return this.episodes; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/NowPlaying.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/NowPlaying.java new file mode 100644 index 00000000..803ac6a9 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/NowPlaying.java @@ -0,0 +1,35 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class NowPlaying { + protected List entries; + + /** + * Gets the value of the entries property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the entries property. + * + *

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

+     *    getEntries().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link NowPlayingEntry } + */ + public List getEntries() { + if (entries == null) { + entries = new ArrayList(); + } + return this.entries; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/NowPlayingEntry.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/NowPlayingEntry.java new file mode 100644 index 00000000..b0ef2074 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/NowPlayingEntry.java @@ -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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/ObjectFactory.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ObjectFactory.java new file mode 100644 index 00000000..0c41e534 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ObjectFactory.java @@ -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(); + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/PlayQueue.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/PlayQueue.java new file mode 100644 index 00000000..b8cd892b --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/PlayQueue.java @@ -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 entries; + protected Integer current; + protected Long position; + protected String username; + protected LocalDateTime changed; + protected String changedBy; + + /** + * Gets the value of the entries property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the entries property. + * + *

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

+     *    getEntries().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getEntries() { + if (entries == null) { + entries = new ArrayList(); + } + return this.entries; + } + + /** + * Gets the value of the current property. + * + * @return possible object is + * {@link Integer } + */ + public Integer getCurrent() { + return current; + } + + /** + * Sets the value of the current property. + * + * @param value allowed object is + * {@link Integer } + */ + public void setCurrent(Integer value) { + this.current = value; + } + + /** + * Gets the value of the position property. + * + * @return possible object is + * {@link Long } + */ + public Long getPosition() { + return position; + } + + /** + * Sets the value of the position property. + * + * @param value allowed object is + * {@link Long } + */ + public void setPosition(Long value) { + this.position = value; + } + + /** + * Gets the value of the username property. + * + * @return possible object is + * {@link String } + */ + public String getUsername() { + return username; + } + + /** + * Sets the value of the username property. + * + * @param value allowed object is + * {@link String } + */ + public void setUsername(String value) { + this.username = value; + } + + /** + * Gets the value of the changed property. + * + * @return possible object is + * {@link String } + */ + public LocalDateTime getChanged() { + return changed; + } + + /** + * Sets the value of the changed property. + * + * @param value allowed object is + * {@link String } + */ + public void setChanged(LocalDateTime value) { + this.changed = value; + } + + /** + * Gets the value of the changedBy property. + * + * @return possible object is + * {@link String } + */ + public String getChangedBy() { + return changedBy; + } + + /** + * Sets the value of the changedBy property. + * + * @param value allowed object is + * {@link String } + */ + public void setChangedBy(String value) { + this.changedBy = value; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Playlist.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Playlist.java new file mode 100644 index 00000000..b0cc26f5 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Playlist.java @@ -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 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. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the allowedUsers property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link String } + */ + public List getAllowedUsers() { + if (allowedUsers == null) { + allowedUsers = new ArrayList(); + } + return this.allowedUsers; + } + + /** + * Gets the value of the id property. + * + * @return possible object is + * {@link String } + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value allowed object is + * {@link String } + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the value of the name property. + * + * @return possible object is + * {@link String } + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value allowed object is + * {@link String } + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the comment property. + * + * @return possible object is + * {@link String } + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value allowed object is + * {@link String } + */ + public void setComment(String value) { + this.comment = value; + } + + /** + * Gets the value of the owner property. + * + * @return possible object is + * {@link String } + */ + public String getOwner() { + return owner; + } + + /** + * Sets the value of the owner property. + * + * @param value allowed object is + * {@link String } + */ + public void setOwner(String value) { + this.owner = value; + } + + /** + * Gets the value of the public property. + * + * @return possible object is + * {@link Boolean } + */ + public Boolean isPublic() { + return _public; + } + + /** + * Sets the value of the public property. + * + * @param value allowed object is + * {@link Boolean } + */ + public void setPublic(Boolean value) { + this._public = value; + } + + /** + * Gets the value of the songCount property. + */ + public int getSongCount() { + return songCount; + } + + /** + * Sets the value of the songCount property. + */ + public void setSongCount(int value) { + this.songCount = value; + } + + /** + * Gets the value of the duration property. + */ + public int getDuration() { + return duration; + } + + /** + * Sets the value of the duration property. + */ + public void setDuration(int value) { + this.duration = value; + } + + /** + * Gets the value of the created property. + * + * @return possible object is + * {@link String } + */ + public LocalDateTime getCreated() { + return created; + } + + /** + * Sets the value of the created property. + * + * @param value allowed object is + * {@link String } + */ + public void setCreated(LocalDateTime value) { + this.created = value; + } + + /** + * Gets the value of the changed property. + * + * @return possible object is + * {@link String } + */ + public LocalDateTime getChanged() { + return changed; + } + + /** + * Sets the value of the changed property. + * + * @param value allowed object is + * {@link String } + */ + public void setChanged(LocalDateTime value) { + this.changed = value; + } + + /** + * Gets the value of the coverArtId property. + * + * @return possible object is + * {@link String } + */ + public String getCoverArtId() { + return coverArtId; + } + + /** + * Sets the value of the coverArtId property. + * + * @param value allowed object is + * {@link String } + */ + public void setCoverArtId(String value) { + this.coverArtId = value; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/PlaylistWithSongs.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/PlaylistWithSongs.java new file mode 100644 index 00000000..2d2f63b6 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/PlaylistWithSongs.java @@ -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 entries; + + /** + * Gets the value of the entries property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the entries property. + * + *

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

+     *    getEntries().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getEntries() { + if (entries == null) { + entries = new ArrayList(); + } + return this.entries; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Playlists.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Playlists.java new file mode 100644 index 00000000..66ec8629 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Playlists.java @@ -0,0 +1,35 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class Playlists { + protected List playlists; + + /** + * Gets the value of the playlists property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the playlists property. + * + *

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

+     *    getPlaylists().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Playlist } + */ + public List getPlaylists() { + if (playlists == null) { + playlists = new ArrayList(); + } + return this.playlists; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/PodcastChannel.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/PodcastChannel.java new file mode 100644 index 00000000..f3d68c87 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/PodcastChannel.java @@ -0,0 +1,203 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class PodcastChannel { + protected List 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. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the episodes property. + * + *

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

+     *    getEpisodes().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PodcastEpisode } + */ + public List getEpisodes() { + if (episodes == null) { + episodes = new ArrayList(); + } + 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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/PodcastEpisode.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/PodcastEpisode.java new file mode 100644 index 00000000..b2ea2114 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/PodcastEpisode.java @@ -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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/PodcastStatus.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/PodcastStatus.java new file mode 100644 index 00000000..f7923827 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/PodcastStatus.java @@ -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); + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Podcasts.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Podcasts.java new file mode 100644 index 00000000..9fc2e47c --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Podcasts.java @@ -0,0 +1,35 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class Podcasts { + protected List channels; + + /** + * Gets the value of the channels property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the channels property. + * + *

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

+     *    getChannels().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PodcastChannel } + */ + public List getChannels() { + if (channels == null) { + channels = new ArrayList(); + } + return this.channels; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/ResponseStatus.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ResponseStatus.java new file mode 100644 index 00000000..9246f327 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ResponseStatus.java @@ -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); + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/ScanStatus.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ScanStatus.java new file mode 100644 index 00000000..5a828624 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/ScanStatus.java @@ -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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/SearchResult.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/SearchResult.java new file mode 100644 index 00000000..88a14bb8 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/SearchResult.java @@ -0,0 +1,65 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class SearchResult { + protected List matches; + protected int offset; + protected int totalHits; + + /** + * Gets the value of the matches property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the matches property. + * + *

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

+     *    getMatches().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getMatches() { + if (matches == null) { + matches = new ArrayList(); + } + 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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/SearchResult2.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/SearchResult2.java new file mode 100644 index 00000000..611a2f33 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/SearchResult2.java @@ -0,0 +1,91 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class SearchResult2 { + protected List artists; + protected List albums; + protected List songs; + + /** + * Gets the value of the artists property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the artists property. + * + *

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

+     *    getArtists().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Artist } + */ + public List getArtists() { + if (artists == null) { + artists = new ArrayList(); + } + return this.artists; + } + + /** + * Gets the value of the albums property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the albums property. + * + *

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

+     *    getAlbums().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getAlbums() { + if (albums == null) { + albums = new ArrayList(); + } + return this.albums; + } + + /** + * Gets the value of the songs property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the songs property. + * + *

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

+     *    getSongs().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getSongs() { + if (songs == null) { + songs = new ArrayList(); + } + return this.songs; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/SearchResult3.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/SearchResult3.java new file mode 100644 index 00000000..976fcf50 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/SearchResult3.java @@ -0,0 +1,91 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class SearchResult3 { + protected List artists; + protected List albums; + protected List songs; + + /** + * Gets the value of the artists property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the artists property. + * + *

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

+     *    getArtists().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ArtistID3 } + */ + public List getArtists() { + if (artists == null) { + artists = new ArrayList(); + } + return this.artists; + } + + /** + * Gets the value of the albums property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the albums property. + * + *

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

+     *    getAlbums().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AlbumID3 } + */ + public List getAlbums() { + if (albums == null) { + albums = new ArrayList(); + } + return this.albums; + } + + /** + * Gets the value of the songs property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the songs property. + * + *

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

+     *    getSongs().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getSongs() { + if (songs == null) { + songs = new ArrayList(); + } + return this.songs; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Share.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Share.java new file mode 100644 index 00000000..6f879578 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Share.java @@ -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 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. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the entries property. + * + *

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

+     *    getEntries().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getEntries() { + if (entries == null) { + entries = new ArrayList(); + } + return this.entries; + } + + /** + * Gets the value of the 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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Shares.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Shares.java new file mode 100644 index 00000000..c17293e5 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Shares.java @@ -0,0 +1,35 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class Shares { + protected List shares; + + /** + * Gets the value of the shares property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the shares property. + * + *

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

+     *    getShares().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Share } + */ + public List getShares() { + if (shares == null) { + shares = new ArrayList(); + } + return this.shares; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/SimilarSongs.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/SimilarSongs.java new file mode 100644 index 00000000..c2750fcc --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/SimilarSongs.java @@ -0,0 +1,35 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class SimilarSongs { + protected List songs; + + /** + * Gets the value of the songs property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the songs property. + * + *

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

+     *    getSongs().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getSongs() { + if (songs == null) { + songs = new ArrayList(); + } + return this.songs; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/SimilarSongs2.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/SimilarSongs2.java new file mode 100644 index 00000000..d6e6f4e0 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/SimilarSongs2.java @@ -0,0 +1,35 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class SimilarSongs2 { + protected List songs; + + /** + * Gets the value of the songs property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the songs property. + * + *

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

+     *    getSongs().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getSongs() { + if (songs == null) { + songs = new ArrayList(); + } + return this.songs; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Songs.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Songs.java new file mode 100644 index 00000000..88dc81a0 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Songs.java @@ -0,0 +1,36 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class Songs { + protected List songs; + + /** + * Gets the value of the songs property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the songs property. + * + *

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

+     *    getSongs().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getSongs() { + if (songs == null) { + songs = new ArrayList(); + } + return this.songs; + } + +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Starred.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Starred.java new file mode 100644 index 00000000..6f294bd9 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Starred.java @@ -0,0 +1,91 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class Starred { + protected List artists; + protected List albums; + protected List songs; + + /** + * Gets the value of the artists property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the artists property. + * + *

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

+     *    getArtists().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Artist } + */ + public List getArtists() { + if (artists == null) { + artists = new ArrayList(); + } + return this.artists; + } + + /** + * Gets the value of the albums property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the albums property. + * + *

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

+     *    getAlbums().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getAlbums() { + if (albums == null) { + albums = new ArrayList(); + } + return this.albums; + } + + /** + * Gets the value of the songs property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the songs property. + * + *

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

+     *    getSongs().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getSongs() { + if (songs == null) { + songs = new ArrayList(); + } + return this.songs; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Starred2.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Starred2.java new file mode 100644 index 00000000..442fff52 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Starred2.java @@ -0,0 +1,91 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class Starred2 { + protected List artists; + protected List albums; + protected List songs; + + /** + * Gets the value of the artists property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the artists property. + * + *

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

+     *    getArtists().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ArtistID3 } + */ + public List getArtists() { + if (artists == null) { + artists = new ArrayList(); + } + return this.artists; + } + + /** + * Gets the value of the albums property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the albums property. + * + *

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

+     *    getAlbums().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AlbumID3 } + */ + public List getAlbums() { + if (albums == null) { + albums = new ArrayList(); + } + return this.albums; + } + + /** + * Gets the value of the songs property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the songs property. + * + *

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

+     *    getSongs().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getSongs() { + if (songs == null) { + songs = new ArrayList(); + } + return this.songs; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/SubsonicResponse.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/SubsonicResponse.java new file mode 100644 index 00000000..e6ece85f --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/SubsonicResponse.java @@ -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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/TopSongs.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/TopSongs.java new file mode 100644 index 00000000..0a7eb593 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/TopSongs.java @@ -0,0 +1,35 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class TopSongs { + protected List songs; + + /** + * Gets the value of the songs property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the songs property. + * + *

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

+     *    getSongs().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getSongs() { + if (songs == null) { + songs = new ArrayList(); + } + return this.songs; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/User.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/User.java new file mode 100644 index 00000000..54502759 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/User.java @@ -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 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. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the folders property. + * + *

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

+     *    getFolders().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Integer } + */ + public List getFolders() { + if (folders == null) { + folders = new ArrayList(); + } + 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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Users.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Users.java new file mode 100644 index 00000000..5adc4d83 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Users.java @@ -0,0 +1,35 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class Users { + protected List users; + + /** + * Gets the value of the users property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the users property. + * + *

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

+     *    getUsers().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link User } + */ + public List getUsers() { + if (users == null) { + users = new ArrayList(); + } + return this.users; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/VideoConversion.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/VideoConversion.java new file mode 100644 index 00000000..37c41745 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/VideoConversion.java @@ -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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/VideoInfo.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/VideoInfo.java new file mode 100644 index 00000000..c08efe95 --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/VideoInfo.java @@ -0,0 +1,112 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class VideoInfo { + protected List captions; + protected List audioTracks; + protected List conversions; + protected String id; + + /** + * Gets the value of the captions property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the captions property. + * + *

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

+     *    getCaptions().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Captions } + */ + public List getCaptions() { + if (captions == null) { + captions = new ArrayList(); + } + return this.captions; + } + + /** + * Gets the value of the audioTracks property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the audioTracks property. + * + *

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

+     *    getAudioTracks().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AudioTrack } + */ + public List getAudioTracks() { + if (audioTracks == null) { + audioTracks = new ArrayList(); + } + return this.audioTracks; + } + + /** + * Gets the value of the conversions property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the conversions property. + * + *

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

+     *    getConversions().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link VideoConversion } + */ + public List getConversions() { + if (conversions == null) { + conversions = new ArrayList(); + } + 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; + } +} diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Videos.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Videos.java new file mode 100644 index 00000000..97ae528f --- /dev/null +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Videos.java @@ -0,0 +1,35 @@ +package com.cappielloantonio.play.subsonic.models; + +import java.util.ArrayList; +import java.util.List; + +public class Videos { + protected List videos; + + /** + * Gets the value of the videos property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the videos property. + * + *

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

+     *    getVideos().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Child } + */ + public List getVideos() { + if (videos == null) { + videos = new ArrayList(); + } + return this.videos; + } +}