appBskyNotificationListNotifications function

Future<XRPCResponse<NotificationListNotificationsOutput>> appBskyNotificationListNotifications({
  1. List<String>? reasons,
  2. int? limit,
  3. bool? priority,
  4. String? cursor,
  5. DateTime? seenAt,
  6. required ServiceContext $ctx,
  7. Map<String, String>? $headers,
  8. Map<String, String>? $unknown,
})

Enumerate notifications for the requesting account. Requires auth.

Implementation

Future<XRPCResponse<NotificationListNotificationsOutput>>
appBskyNotificationListNotifications({
  List<String>? reasons,
  int? limit,
  bool? priority,
  String? cursor,
  DateTime? seenAt,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.appBskyNotificationListNotifications,
  headers: $headers,
  parameters: {
    ...?$unknown,
    if (reasons != null) 'reasons': reasons,
    if (limit != null) 'limit': limit,
    if (priority != null) 'priority': priority,
    if (cursor != null) 'cursor': cursor,
    if (seenAt != null) 'seenAt': iso8601(seenAt),
  },
  to: const NotificationListNotificationsOutputConverter().fromJson,
);