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

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

There is a newer version: 2.0.0
Show newest version
package edu.ksu.canvas.interfaces;

import edu.ksu.canvas.enums.SectionIncludes;
import edu.ksu.canvas.model.Section;

import java.io.IOException;
import java.util.List;
import java.util.Optional;
/**
 * Methods to read information from and about sections
 */
public interface SectionReader extends CanvasReader {

    /**
     * Return a list of sections in a given course
     * @param courseId Canvas ID of course
     * @param includes Optional information to include in the returned sections
     * @return List of sections
     * @throws IOException When there is an error communicating with Canvas
     */
     List
listCourseSections(String courseId, List includes) throws IOException; /** * Return a single section with a given section ID * @param sectionId Section ID of section * @return The section * @throws IOException When there is an error communicating with Canvas */ Optional
getSingleSection(String sectionId) throws IOException; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy