All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.ksu.canvas.interfaces.ProgressReader Maven / Gradle / Ivy

The newest version!
package edu.ksu.canvas.interfaces;

import edu.ksu.canvas.model.Progress;

import java.io.IOException;
import java.util.Optional;

public interface ProgressReader extends CanvasReader {
    /**
     * Returns the progress of an asynchronous process by progress URL
     * @param url The URL to query for progress
     * @return A Progress object
     * @throws IOException When there is an error communicating with Canvas
     */
    Optional getProgress(String url) throws IOException;

    /**
     * Returns the progress of an asynchronous process by progress ID
     * @param progressId ID of the progress object to query
     * @return The requested Progress object
     * @throws IOException When there is an error communicating with Canvas
     */
    Optional getProgress(Long progressId) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy