appBskyNotificationGetUnreadCount function

Future<XRPCResponse<NotificationGetUnreadCountOutput>> appBskyNotificationGetUnreadCount({
  1. bool? priority,
  2. DateTime? seenAt,
  3. required ServiceContext $ctx,
  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({
  bool? priority,
  DateTime? seenAt,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.appBskyNotificationGetUnreadCount,
  headers: $headers,
  parameters: {
    ...?$unknown,
    if (priority != null) 'priority': priority,
    if (seenAt != null) 'seenAt': iso8601(seenAt),
  },
  to: const NotificationGetUnreadCountOutputConverter().fromJson,
);