public class ListUserCoursesOptions extends BaseOptions
| Modifier and Type | Class and Description |
|---|---|
static class |
ListUserCoursesOptions.EnrollmentState |
static class |
ListUserCoursesOptions.Include |
static class |
ListUserCoursesOptions.State |
optionsMap| Constructor and Description |
|---|
ListUserCoursesOptions(String userId)
Constructor with required userId
|
| Modifier and Type | Method and Description |
|---|---|
ListUserCoursesOptions |
enrollmentStates(ListUserCoursesOptions.EnrollmentState enrollmentState)
If set, only return courses that are in the given enrollment state
|
String |
getUserId() |
ListUserCoursesOptions |
includes(List<ListUserCoursesOptions.Include> includes)
Include additional optional fields in the course objects
|
ListUserCoursesOptions |
states(List<ListUserCoursesOptions.State> states)
If set, only return courses that are in the given state(s)
|
addEnumList, addNumberList, addSingleItem, addStringList, getOptionsMappublic ListUserCoursesOptions(String userId)
userId - can be the canvasUserId or sis_login_id:loginNamepublic String getUserId()
public ListUserCoursesOptions includes(List<ListUserCoursesOptions.Include> includes)
includes - List of additional fields to includepublic ListUserCoursesOptions states(List<ListUserCoursesOptions.State> states)
states - A list of states to filter onpublic ListUserCoursesOptions enrollmentStates(ListUserCoursesOptions.EnrollmentState enrollmentState)
enrollmentState - A list of states to filter onCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.