MoodleNotificationsDatasource class

Standard implementation of the NotificationsDatasource using Moodle API.

Inheritance

Constructors

MoodleNotificationsDatasource(ApiService _api)
Standard implementation of the NotificationsDatasource using Moodle API.

Properties

errorLevel Level
The level to log error messages at.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
level Level
The level to log messages at.
no setterinherited
name String
The name of the datasource.
no setterinherited
namespace String
The namespace to log messages under. e.g. 'Service.Auth'
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes controllers, streams, etc.
override
fetchNotifications(String token) Future<List<Notification>>
Fetches the user's notifications.
override
log(Object message, [Object? error, StackTrace? stackTrace]) → void
Logs a message with an optional error and stack trace.
inherited
markAllAsRead(String token, List<Notification> notifications) Future<void>
Marks all notifications as read.
override
markAsRead(String token, Notification notification) Future<void>
Marks the given notification as read.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unread(String token, Notification notification) Future<void>
Marks the given notification as unread.
override
unreadAll(String token, List<Notification> notifications) Future<void>
Marks all notifications as unread.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited