NotificationService class base

app.bsky.notification.*

Properties

declaration NotificationDeclarationRecordAccessor
A declaration of the user's choices related to notifications that can be produced by them.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getPreferences({Map<String, String>? $headers, Map<String, String>? $unknown}) Future<XRPCResponse<NotificationGetPreferencesOutput>>
Get notification-related preferences for an account. Requires auth.
getUnreadCount({bool? priority, DateTime? seenAt, Map<String, String>? $headers, Map<String, String>? $unknown}) Future<XRPCResponse<NotificationGetUnreadCountOutput>>
Count the number of unread notifications for the requesting account. Requires auth.
listActivitySubscriptions({int? limit, String? cursor, Map<String, String>? $headers, Map<String, String>? $unknown}) Future<XRPCResponse<NotificationListActivitySubscriptionsOutput>>
Enumerate all accounts to which the requesting account is subscribed to receive notifications for. Requires auth.
listNotifications({List<String>? reasons, int? limit, bool? priority, String? cursor, DateTime? seenAt, Map<String, String>? $headers, Map<String, String>? $unknown}) Future<XRPCResponse<NotificationListNotificationsOutput>>
Enumerate notifications for the requesting account. Requires auth.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putActivitySubscription({required String subject, required ActivitySubscription activitySubscription, Map<String, String>? $headers, Map<String, String>? $unknown}) Future<XRPCResponse<NotificationPutActivitySubscriptionOutput>>
Puts an activity subscription entry. The key should be omitted for creation and provided for updates. Requires auth.
putPreferences({required bool priority, Map<String, String>? $headers, Map<String, String>? $unknown}) Future<XRPCResponse<EmptyData>>
Set notification-related preferences for an account. Requires auth.
putPreferencesV2({ChatPreference? chat, FilterablePreference? follow, FilterablePreference? like, FilterablePreference? likeViaRepost, FilterablePreference? mention, FilterablePreference? quote, FilterablePreference? reply, FilterablePreference? repost, FilterablePreference? repostViaRepost, Preference? starterpackJoined, Preference? subscribedPost, Preference? unverified, Preference? verified, Map<String, String>? $headers, Map<String, String>? $unknown}) Future<XRPCResponse<NotificationPutPreferencesV2Output>>
Set notification-related preferences for an account. Requires auth.
registerPush({required String serviceDid, required String token, required NotificationRegisterPushPlatform platform, required String appId, bool? ageRestricted, Map<String, String>? $headers, Map<String, String>? $unknown}) Future<XRPCResponse<EmptyData>>
Register to receive push notifications, via a specified service, for the requesting account. Requires auth.
toString() String
A string representation of this object.
inherited
unregisterPush({required String serviceDid, required String token, required NotificationUnregisterPushPlatform platform, required String appId, Map<String, String>? $headers, Map<String, String>? $unknown}) Future<XRPCResponse<EmptyData>>
The inverse of registerPush - inform a specified service that push notifications should no longer be sent to the given token for the requesting account. Requires auth.
updateSeen({required DateTime seenAt, Map<String, String>? $headers, Map<String, String>? $unknown}) Future<XRPCResponse<EmptyData>>
Notify server that the requesting account has seen notifications. Requires auth.

Operators

operator ==(Object other) bool
The equality operator.
inherited