appBskyNotificationGetUnreadCount function

Future<XRPCResponse<NotificationGetUnreadCountOutput>> appBskyNotificationGetUnreadCount({
  1. DateTime? seenAt,
  2. required ServiceContext $ctx,
  3. String? $service,
  4. Map<String, String>? $headers,
  5. Map<String, String>? $unknown,
})

Count the number of unread notifications for the requesting account. Requires auth.

Implementation

Future<XRPCResponse<NotificationGetUnreadCountOutput>>
appBskyNotificationGetUnreadCount({
  DateTime? seenAt,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.appBskyNotificationGetUnreadCount,
  service: $service,
  headers: $headers,
  parameters: {...?$unknown, if (seenAt != null) 'seenAt': iso8601(seenAt)},
  to: const NotificationGetUnreadCountOutputConverter().fromJson,
);