appBskyNotificationGetUnreadCount function
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,
);