From 02059b436b91359742e498e5658a4e5666460f81 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 18 Apr 2012 06:38:40 +0200 Subject: [PATCH] Add style to track. --- .../net/pterodactylus/demoscenemusic/data/AbstractTrack.java | 9 +++++++++ src/main/java/net/pterodactylus/demoscenemusic/data/Track.java | 4 ++++ 2 files changed, 13 insertions(+) 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); + } -- 2.7.4