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

edu.ksu.canvas.requestOptions.ListModulesOptions Maven / Gradle / Ivy

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

import java.util.List;

/**
 * Options for listing the modules in a course.
 *
 * @see List modules
 */
public class ListModulesOptions extends BaseOptions {

    public enum Include {
        ITEMS,
        CONTENT_DETAILS
    }

    private Long courseId;

    public ListModulesOptions(Long courseId) {
        this.courseId = courseId;
    }

    public Long getCourseId() {
        return courseId;
    }

    public ListModulesOptions includes(List includes) {
        addEnumList("include[]", includes);
        return this;
    }

    public ListModulesOptions searchTerm(String searchTerm) {
        addSingleItem("search_term", searchTerm);
        return this;
    }

    public ListModulesOptions studentId(String studentId) {
        addSingleItem("student_id", studentId);
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy