aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-10-22 20:04:02 -0700
committerScott Jackson <daneren2005@gmail.com>2012-10-22 20:04:02 -0700
commit628db413d4a78e9f3cbfe1b067533fb5c1d2b9d3 (patch)
treea0e8282c1eb1e56e07de06c65889d167f348a938
parent9ce49b158d38cd8a6110dbe598d439f94c3f9cff (diff)
downloaddsub-628db413d4a78e9f3cbfe1b067533fb5c1d2b9d3.tar.gz
dsub-628db413d4a78e9f3cbfe1b067533fb5c1d2b9d3.tar.bz2
dsub-628db413d4a78e9f3cbfe1b067533fb5c1d2b9d3.zip
Added more playlist information that is brought into playlist object
-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();
}