Move method to remove image from Album to Image.
[Sone.git] / src / main / java / net / pterodactylus / sone / data / Image.java
index e3e1b4d..3fbcc02 100644 (file)
@@ -46,16 +46,6 @@ public interface Image extends Identified, Fingerprintable {
        Album getAlbum();
 
        /**
-        * Sets the album this image belongs to. The album of an image can only be
-        * set once, and it is usually called by {@link Album#addImage(Image)}.
-        *
-        * @param album
-        *            The album this image belongs to
-        * @return This image
-        */
-       Image setAlbum(Album album);
-
-       /**
         * Returns the request key of this image.
         *
         * @return The request key of this image
@@ -116,11 +106,9 @@ public interface Image extends Identified, Fingerprintable {
 
        Modifier modify() throws IllegalStateException;
 
-       interface Modifier {
+       void remove() throws IllegalStateException;
 
-               Modifier setSone(Sone sone);
-
-               Modifier setCreationTime(long creationTime);
+       interface Modifier {
 
                Modifier setKey(String key);
 
@@ -128,10 +116,6 @@ public interface Image extends Identified, Fingerprintable {
 
                Modifier setDescription(String description);
 
-               Modifier setWidth(int width);
-
-               Modifier setHeight(int height);
-
                Image update() throws IllegalStateException;
 
        }