listNotifications method

  1. @override
Future<NotificationList> listNotifications({
  1. required Session session,
  2. int limit = defaultLimit,
  3. String? cursor,
})
override

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());
}