diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-08-15 15:03:40 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-08-15 15:03:40 -0700 |
commit | 6ebe14d439ec060e6dadd0dffdb8f16a13d57c9a (patch) | |
tree | 87f337e02edc4b986b6244d5797b4eff345723b7 | |
parent | d85a1113dc5d973713e205387fc7e8907c510d1a (diff) | |
download | dsub-6ebe14d439ec060e6dadd0dffdb8f16a13d57c9a.tar.gz dsub-6ebe14d439ec060e6dadd0dffdb8f16a13d57c9a.tar.bz2 dsub-6ebe14d439ec060e6dadd0dffdb8f16a13d57c9a.zip |
Add rating/bookmark to Entry definition
-rw-r--r-- | src/github/daneren2005/dsub/domain/MusicDirectory.java | 56 |
1 files changed, 36 insertions, 20 deletions
diff --git a/src/github/daneren2005/dsub/domain/MusicDirectory.java b/src/github/daneren2005/dsub/domain/MusicDirectory.java index 1b3342bd..0cff955d 100644 --- a/src/github/daneren2005/dsub/domain/MusicDirectory.java +++ b/src/github/daneren2005/dsub/domain/MusicDirectory.java @@ -107,30 +107,32 @@ public class MusicDirectory implements Serializable { } public static class Entry implements Serializable { - private String id; - private String parent; + private String id; + private String parent; private String grandParent; private String albumId; private String artistId; - private boolean directory; - private String title; - private String album; - private String artist; - private Integer track; - private Integer year; - private String genre; - private String contentType; - private String suffix; - private String transcodedContentType; - private String transcodedSuffix; - private String coverArt; - private Long size; - private Integer duration; - private Integer bitRate; - private String path; - private boolean video; + private boolean directory; + private String title; + private String album; + private String artist; + private Integer track; + private Integer year; + private String genre; + private String contentType; + private String suffix; + private String transcodedContentType; + private String transcodedSuffix; + private String coverArt; + private Long size; + private Integer duration; + private Integer bitRate; + private String path; + private boolean video; private Integer discNumber; - private boolean starred; + private boolean starred; + private Integer rating; + private Bookmark bookmark; private int closeness; public void loadMetadata(File file) { @@ -392,6 +394,20 @@ public class MusicDirectory implements Serializable { public void setStarred(boolean starred) { this.starred = starred; } + + public Integer getRating() { + return rating; + } + public void setRating(Integer rating) { + this.rating = rating; + } + + public Bookmark getBookmark() { + return bookmark; + } + public void setBookmark(Bookmark bookmark) { + this.bookmark = bookmark; + } public int getCloseness() { return closeness; |