public class ListCurrentUserCoursesOptions extends BaseOptions
| Modifier and Type | Class and Description |
|---|---|
static class |
ListCurrentUserCoursesOptions.EnrollmentType |
static class |
ListCurrentUserCoursesOptions.Include |
static class |
ListCurrentUserCoursesOptions.State |
optionsMap| Constructor and Description |
|---|
ListCurrentUserCoursesOptions() |
| Modifier and Type | Method and Description |
|---|---|
ListCurrentUserCoursesOptions |
includes(List<ListCurrentUserCoursesOptions.Include> includes)
Include additional optional fields in the course objects
|
ListCurrentUserCoursesOptions |
states(List<ListCurrentUserCoursesOptions.State> states)
If set, only return courses that are in the given state(s)
|
ListCurrentUserCoursesOptions |
withEnrollmentRoleId(Integer roleId)
When set, only return courses where the user is enrolled with the specified course-level role
|
ListCurrentUserCoursesOptions |
withEnrollmentType(ListCurrentUserCoursesOptions.EnrollmentType enrollmentType)
When given, only return courses where the user is enrolled as the given type(s)
|
addEnumList, addNumberList, addSingleItem, addStringList, getOptionsMappublic ListCurrentUserCoursesOptions withEnrollmentType(ListCurrentUserCoursesOptions.EnrollmentType enrollmentType)
enrollmentType - Enrollment type to restrict the list topublic ListCurrentUserCoursesOptions withEnrollmentRoleId(Integer roleId)
roleId - The ID of the role to restrict the list topublic ListCurrentUserCoursesOptions includes(List<ListCurrentUserCoursesOptions.Include> includes)
includes - List of additional fields to includepublic ListCurrentUserCoursesOptions states(List<ListCurrentUserCoursesOptions.State> states)
states - A list of states to filter onCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.