Make releases of a party availabable.
[demoscenemusic.git] / src / main / java / net / pterodactylus / demoscenemusic / data / Party.java
index 1bb1686..301e9c8 100644 (file)
 
 package net.pterodactylus.demoscenemusic.data;
 
+import java.util.Collection;
+
 /**
- * TODO
+ * Data interface for parties.
  *
  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
  */
-public class Party extends Base {
+public interface Party extends Base {
 
-       private String name;
+       /**
+        * Returns the name of this party.
+        *
+        * @return The name of this party
+        */
+       public String getName();
 
-       public Party(String id) {
-               super(id);
-       }
+       /**
+        * Sets the name of this party.
+        *
+        * @param name
+        *            The name of this party
+        * @return This party
+        */
+       public Party setName(String name);
 
-       public String name() {
-               return name;
-       }
+       /**
+        * Returns all tracks that were released at this party.
+        *
+        * @return All tracks that were released at this party
+        */
+       public Collection<Track> getReleases();
 
-       public Party name(String name) {
-               this.name = name;
-               return this;
-       }
+       /**
+        * Sets all tracks that were released at this party.
+        *
+        * @param tracks
+        *            All tracks that were released at this party
+        * @return This party
+        */
+       public Party setReleases(Collection<Track> tracks);
 
 }