X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fdemoscenemusic%2Fdata%2FParty.java;h=301e9c8a4dfe80c08fd6e72e3cbdfa37ddff5dd1;hb=70e99ae2ccefa4cebec5b282ff0d528ab1654d74;hp=1bb16869dc32b01e636ed7fd95e0c283b54bdf6c;hpb=fac195bb7ea8f1e3334897d45edcc5ebebd54242;p=demoscenemusic.git diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/Party.java b/src/main/java/net/pterodactylus/demoscenemusic/data/Party.java index 1bb1686..301e9c8 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/Party.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/Party.java @@ -17,26 +17,45 @@ package net.pterodactylus.demoscenemusic.data; +import java.util.Collection; + /** - * TODO + * Data interface for parties. * * @author David ‘Bombe’ Roden */ -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 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 tracks); }