package model;

/**
 * {@link Transform Transform} subclass for image transformations.
 */
public class ImageTransform extends Transform {

    public ImageTransform(Client client, String source) {
        super(client, source);
    }

    public ImageTransform(FileLink fileLink) {
        super(fileLink);
    }

    // TODO This is just for demonstration, it should be confirmed when real transforms are added
    public ImageTransform resize(Integer width, Integer height, String fit, String align) {
        Task task = new Task("resize");
        task.addOption("width", width);
        task.addOption("height", height);
        task.addOption("fit", fit);
        task.addOption("align", align);
        tasks.add(task);
        return this;
    }
}

@@ -9,16 +9,81 @@
 model;%0A%0A
+import com.google.gson.JsonObject;%0A%0Aimport java.io.IOException;%0A%0A
 /**%0A * %7B
@@ -369,24 +369,353 @@
 nk);%0A    %7D%0A%0A
+    public JsonObject debug() throws IOException %7B%0A        String tasksString = getTasksString();%0A%0A        if (apiKey != null) %7B%0A            // TODO Implement when we add external transforms%0A            return null;%0A        %7D else %7B%0A            return processService.debug(tasksString, source).execute().body();%0A        %7D%0A    %7D%0A%0A
     // TODO 

Add debug method to ImageTransform