aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/domain/Playlist.java44
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/parser/PlaylistsParser.java6
2 files changed, 49 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/domain/Playlist.java b/subsonic-android/src/github/daneren2005/dsub/domain/Playlist.java
index e13f2eeb..3ac5c553 100644
--- a/subsonic-android/src/github/daneren2005/dsub/domain/Playlist.java
+++ b/subsonic-android/src/github/daneren2005/dsub/domain/Playlist.java
@@ -27,11 +27,23 @@ public class Playlist implements Serializable {
private String id;
private String name;
+ private String owner;
+ private String comment;
+ private String songCount;
+ private String created;
public Playlist(String id, String name) {
this.id = id;
this.name = name;
}
+ public Playlist(String id, String name, String owner, String comment, String songCount, String created) {
+ this.id = id;
+ this.name = name;
+ this.owner = owner;
+ this.comment = comment;
+ this.songCount = songCount;
+ this.created = created;
+ }
public String getId() {
return id;
@@ -48,6 +60,38 @@ public class Playlist implements Serializable {
public void setName(String name) {
this.name = name;
}
+
+ public String getOwner() {
+ return this.owner;
+ }
+
+ public void setOwner(String owner) {
+ this.owner = owner;
+ }
+
+ public String getComment() {
+ return this.comment;
+ }
+
+ public void setComment(String comment) {
+ this.comment = comment;
+ }
+
+ public String getSongCount() {
+ return this.songCount;
+ }
+
+ public void setSongCount(String songCount) {
+ this.songCount = songCount;
+ }
+
+ public String getCreated() {
+ return this.created;
+ }
+
+ public void setCreated(String created) {
+ this.created = created;
+ }
@Override
public String toString() {
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/parser/PlaylistsParser.java b/subsonic-android/src/github/daneren2005/dsub/service/parser/PlaylistsParser.java
index 079c35f5..c6a18580 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/parser/PlaylistsParser.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/parser/PlaylistsParser.java
@@ -51,7 +51,11 @@ public class PlaylistsParser extends AbstractParser {
if ("playlist".equals(tag)) {
String id = get("id");
String name = get("name");
- result.add(new Playlist(id, name));
+ String owner = get("owner");
+ String comment = get("comment");
+ String songCount = get("songCount");
+ String created = get("created");
+ result.add(new Playlist(id, name, owner, comment, songCount, created));
} else if ("error".equals(tag)) {
handleError();
}