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 {
  final res = await _client.listNotifications(
    api.ListNotificationsRequest(
      cacheableCursor: cursor,
      limit: api.Int32Value(value: limit),
    ),
    options: _getSessionCallOptions(session),
  );

  return model.NotificationList.fromDto(res);
}