Add groups to artist.
[demoscenemusic.git] / src / main / java / net / pterodactylus / demoscenemusic / data / AbstractArtist.java
index 66a31d0..8ba69cb 100644 (file)
@@ -17,6 +17,8 @@
 
 package net.pterodactylus.demoscenemusic.data;
 
+import java.util.Set;
+
 /**
  * TODO
  *
@@ -37,4 +39,20 @@ public abstract class AbstractArtist extends AbstractBase implements Artist {
                return this;
        }
 
+       /**
+        * {@inheritDoc}
+        */
+       @SuppressWarnings("unchecked")
+       public Set<Group> groups() {
+               return value("groups", Set.class).get();
+       }
+
+       /**
+        * {@inheritDoc}
+        */
+       public Artist groups(Set<Group> groups) {
+               value("groups", Set.class).set(groups);
+               return this;
+       }
+
 }