listNotifications method
Listing notifications
Players can list the notifications they received while offline.
Implementation
@override
Future<model.NotificationList> listNotifications({
required model.Session session,
int limit = defaultLimit,
String? cursor,
}) async {
_session = session;
final res = await _api.v2NotificationGet(
limit: limit,
cacheableCursor: cursor,
);
return model.NotificationList.fromJson(res.body!.toJson());
}