Get parties a track was released at from the track.
[demoscenemusic.git] / src / main / java / net / pterodactylus / demoscenemusic / data / DefaultTrack.java
index 804d710..ffeb003 100644 (file)
@@ -166,4 +166,22 @@ public class DefaultTrack extends DefaultBase implements Track {
                return this;
        }
 
+       /**
+        * {@inheritDoc}
+        */
+       @Override
+       @SuppressWarnings("unchecked")
+       public Collection<Party> getParties() {
+               return getValue("parties", Collection.class).get();
+       }
+
+       /**
+        * {@inheritDoc}
+        */
+       @Override
+       public Track setParties(Collection<Party> parties) {
+               getValue("parties", Collection.class).set(parties);
+               return this;
+       }
+
 }