Store artist of a track in the attributes.
[demoscenemusic.git] / src / main / java / net / pterodactylus / demoscenemusic / data / AbstractTrack.java
index 9e721df..7c19f8c 100644 (file)
@@ -39,8 +39,13 @@ public abstract class AbstractTrack extends AbstractBase implements Track {
                return this;
        }
 
-       public abstract Artist artist();
+       public Artist artist() {
+               return value("artist", Artist.class).get();
+       }
 
-       public abstract Track artist(Artist artist);
+       public Track artist(Artist artist) {
+               value("artist", Artist.class).set(artist);
+               return this;
+       }
 
 }