From: David ‘Bombe’ Roden Date: Wed, 18 Apr 2012 04:38:40 +0000 (+0200) Subject: Add style to track. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=02059b436b91359742e498e5658a4e5666460f81;p=demoscenemusic.git Add style to track. --- diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java b/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java index 1d90898..b59ad83 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java @@ -46,4 +46,13 @@ public abstract class AbstractTrack extends AbstractBase implements Track { return this; } + public Style style() { + return value("style", Style.class).get(); + } + + public Track style(Style style) { + value("style", Style.class).set(style); + return this; + } + } diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/Track.java b/src/main/java/net/pterodactylus/demoscenemusic/data/Track.java index 695cafe..b334ef2 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/Track.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/Track.java @@ -28,4 +28,8 @@ public interface Track extends Base { public Artist artist(); + public Style style(); + + public Track style(Style style); + }