From 6ebe14d439ec060e6dadd0dffdb8f16a13d57c9a Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Fri, 15 Aug 2014 15:03:40 -0700 Subject: Add rating/bookmark to Entry definition --- .../daneren2005/dsub/domain/MusicDirectory.java | 56 ++++++++++++++-------- 1 file changed, 36 insertions(+), 20 deletions(-) (limited to 'src') 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; -- cgit v1.2.3