Tracks can belong to multiple artists and styles.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 18 Apr 2012 10:26:42 +0000 (12:26 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 18 Apr 2012 10:26:42 +0000 (12:26 +0200)
src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java
src/main/java/net/pterodactylus/demoscenemusic/data/Track.java

index b59ad83..810a528 100644 (file)
@@ -17,6 +17,9 @@
 
 package net.pterodactylus.demoscenemusic.data;
 
+import java.util.List;
+import java.util.Set;
+
 /**
  * TODO
  *
@@ -37,21 +40,21 @@ public abstract class AbstractTrack extends AbstractBase implements Track {
                return this;
        }
 
-       public Artist artist() {
-               return value("artist", Artist.class).get();
+       public List<Artist> artists() {
+               return value("artists", List.class).get();
        }
 
-       public Track artist(Artist artist) {
-               value("artist", Artist.class).set(artist);
+       public Track artists(List<Artist> artists) {
+               value("artists", List.class).set(artists);
                return this;
        }
 
-       public Style style() {
-               return value("style", Style.class).get();
+       public Set<Style> styles() {
+               return value("styles", Set.class).get();
        }
 
-       public Track style(Style style) {
-               value("style", Style.class).set(style);
+       public Track styles(Set<? extends Style> styles) {
+               value("styles", Set.class).set(styles);
                return this;
        }
 
index 44d271e..172bea3 100644 (file)
@@ -17,6 +17,9 @@
 
 package net.pterodactylus.demoscenemusic.data;
 
+import java.util.List;
+import java.util.Set;
+
 /**
  * TODO
  *
@@ -28,12 +31,12 @@ public interface Track extends Base {
 
        public Track name(String name);
 
-       public Artist artist();
+       public List<Artist> artists();
 
-       public Track artist(Artist artist);
+       public Track artists(List<Artist> artists);
 
-       public Style style();
+       public Set<Style> styles();
 
-       public Track style(Style style);
+       public Track styles(Set<? extends Style> styles);
 
 }