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

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

package edu.ksu.canvas.interfaces;

import edu.ksu.canvas.model.Deposit;
import edu.ksu.canvas.model.File;

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

/**
 * This just allows you to upload a file once you've requested a file to be uploaded.
 * https://canvas.instructure.com/doc/api/file.file_uploads.html
 */
public interface FileWriter extends CanvasWriter {

    Optional upload(Deposit deposit, InputStream in, String filename) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy