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

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

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

import edu.ksu.canvas.model.assignment.AssignmentGroup;
import edu.ksu.canvas.requestOptions.GetAssignmentGroupOptions;
import edu.ksu.canvas.requestOptions.ListAssignmentGroupOptions;

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

public interface AssignmentGroupReader extends CanvasReader{

    /**
     * Return a list of AssignmentGroups that the current user can view or manage.
     * @param options A mapping of optional parameters for assignment groups
     * @return List of AssignmentGroups
     * @throws IOException When there is an error communicating with Canvas
     */
    List listAssignmentGroup(ListAssignmentGroupOptions options) throws IOException;

    /**
     * Returns the requested assignment group by ID
     * @param options Collection of optional parameters to the Canvas API
     * @return The requested assignment group
     * @throws IOException When there is an error communicating with Canvas
     */
    Optional getAssignmentGroup(GetAssignmentGroupOptions options) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy