X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FImage.java;h=571eb4f1f81d8d2db05a320fac2f036f5d0af32f;hb=72407829d504a0444aadd09cc937bae10b6cb866;hp=e3e1b4d8fecb89bd6367e4b237d07c233f948052;hpb=9d32a0f70e14a764946ae29edcf07304f9e5f75e;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/data/Image.java b/src/main/java/net/pterodactylus/sone/data/Image.java index e3e1b4d..571eb4f 100644 --- a/src/main/java/net/pterodactylus/sone/data/Image.java +++ b/src/main/java/net/pterodactylus/sone/data/Image.java @@ -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,13 @@ public interface Image extends Identified, Fingerprintable { Modifier modify() throws IllegalStateException; - interface Modifier { + void moveUp() throws IllegalStateException; - Modifier setSone(Sone sone); + void moveDown() throws IllegalStateException; - Modifier setCreationTime(long creationTime); + void remove() throws IllegalStateException; + + interface Modifier { Modifier setKey(String key); @@ -128,10 +120,6 @@ public interface Image extends Identified, Fingerprintable { Modifier setDescription(String description); - Modifier setWidth(int width); - - Modifier setHeight(int height); - Image update() throws IllegalStateException; }