X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fdemoscenemusic%2Fdata%2FArtist.java;h=563a3bc8bf9e87a254bd3aaf7d5644c489f5b103;hb=fb73cc41eb8f9ef9bf2181f4295dc74581b25b53;hp=d31ee31fa6ffee3dc82e0473887fe0fdf36d6d84;hpb=c4eb0f84cbcf23c5f0de00f444d2855b0b834fdd;p=demoscenemusic.git
diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java b/src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java
index d31ee31..563a3bc 100644
--- a/src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java
+++ b/src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java
@@ -17,31 +17,61 @@
package net.pterodactylus.demoscenemusic.data;
+import java.util.Collection;
+
/**
- * TODO
+ * Data interface for artists.
*
* @author David âBombeâ Roden
*/
-public class Artist {
+public interface Artist extends Base {
+
+ /**
+ * Returns the name of this artist.
+ *
+ * @return The name of this artist
+ */
+ public String getName();
- private final String id;
- private String name;
+ /**
+ * Sets the name of this artist.
+ *
+ * @param name
+ * The new name of this artist
+ * @return This artist
+ */
+ public Artist setName(String name);
- public Artist(String id) {
- this.id = id;
- }
+ /**
+ * Returns the groups this artist belongs to.
+ *
+ * @return The groups this artist belongs to
+ */
+ public Collection getGroups();
- public String id() {
- return id;
- }
+ /**
+ * Sets the groups this artist belongs to.
+ *
+ * @param groups
+ * The groups this artist belongs to
+ * @return This artist
+ */
+ public Artist setGroups(Collection groups);
- public String name() {
- return name;
- }
+ /**
+ * Returns the tracks created by this artist.
+ *
+ * @return The tracks created by this artist
+ */
+ public Collection