appBskyNotificationGetGroupedNotifications function

Future<XRPCResponse<NotificationGetGroupedNotificationsOutput>> appBskyNotificationGetGroupedNotifications({
  1. NotificationGetGroupedNotificationsFeed? feed,
  2. int? limit,
  3. String? cursor,
  4. required ServiceContext $ctx,
  5. String? $service,
  6. Map<String, String>? $headers,
  7. Map<String, String>? $unknown,
})

UNSTABLE - DO NOT USE THIS ENDPOINT WHILE THIS NOTE IS HERE Enumerate notifications for the requesting account, pre-grouped for rendering. Supersedes listNotifications. Requires auth.

Implementation

Future<XRPCResponse<NotificationGetGroupedNotificationsOutput>>
appBskyNotificationGetGroupedNotifications({
  NotificationGetGroupedNotificationsFeed? feed,
  int? limit,
  String? cursor,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.appBskyNotificationGetGroupedNotifications,
  service: $service,
  headers: $headers,
  parameters: {
    ...?$unknown,
    if (feed != null) 'feed': feed.toJson(),
    if (limit != null) 'limit': limit,
    if (cursor != null) 'cursor': cursor,
  },
  to: const NotificationGetGroupedNotificationsOutputConverter().fromJson,
);