modules/moodle/moodle library

Classes

ApiService
Service for
AuthGuard
Guard that checks if the user is authenticated.
AuthModule
Handles the authentication of users.
AuthRepository
UI state controller for authentication.
AuthService
Service for authenticating users.
CourseSelector
Displays a form where the user can search for courses and enable/disable them.
CourseTag
Displays the shortname of the given course in a colored tag.
CourseWidget
Renders a given MoodleCourse as a widget.
InsuffcientPermissionsReason
If AuthException.reason is InsuffcientPermissionsReason, the user does not have the required permissions to use the webservice and thus is not allowed to authenticate.
LoginForm
A form prompting the user to input their credentials.
LoginScreen
Presents an authentication form to the user.
MoodleCourse
A course on Moodle the user is enrolled in.
MoodleCourseDatasource
Datasource for fetching course data.
MoodleCoursesRepository
Repository for managing a user's MoodleCourses.
MoodleModule
Module handling communication with the Moodle API.
MoodleTask
A task that is part of a MoodleCourse.
MoodleTaskDatasource
Datasource for fetching task data.
MoodleTasksRepository
Provides all tasks from Moodle with the latest updates.
MoodleTaskWidget
Renders the given task.
Token
A token to authenticate with a Webservice.
User
A user using the application.
UserDatasource
Datasource for fetching user data.
UserProfileImage
Renders a user's profile image.
UserRepository
UI state controller for the current user.
UsersRepository
Holds all users of the application.

Enums

MoodleTaskStatus
The status of a MoodleTask.
MoodleTaskType
The type of a MoodleTask.
MoodleTaskWidgetDisplayMode
Display mode for MoodleTaskWidget.
UserCapability
Represents the different capabilities a user can possess within the application.
Vintage
Represents a "Jahrgang" (grade level or class year) in a high school context. Used to denote the year group (or class) of students within a high school.
Webservice
An API endpoint exposed by a moodle plugin.

Extensions

ApiServiceResponseUtils on Either<List<JSON>, JSON>
Utility functions for Either<List<JSON>, JSON>.
FilterUserX on Iterable<User>
Extension methods for filtering users.
TasksFilterX on Iterable<MoodleTask>
Extension methods for filtering tasks.
TokenExt on Set<Token>
Utility functions for Token sets.
UserCapabilitiesExtension on List<UserCapability>
Provides helper methods for List<UserCapability>.
UserCapabilityExtension on UserCapability
Provides helper methods for UserCapability.

Exceptions / Errors

ApiServiceException
An exception thrown when ApiService.callFunction fails.
AuthException
An exception thrown when AuthService.authenticate fails.