MastodonNotificationPolicy class
Mastodon notification policy (Mastodon 4.3+).
/api/v2/notifications/policy
Holds filtering rules for each notification category.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
- MastodonNotificationPolicy({required NotificationFilterAction forNotFollowing, required NotificationFilterAction forNotFollowers, required NotificationFilterAction forNewAccounts, required NotificationFilterAction forPrivateMentions, required NotificationFilterAction forLimitedAccounts, MastodonNotificationPolicySummary? summary})
-
const
-
MastodonNotificationPolicy.fromJson(Map<
String, dynamic> json) -
factory
Properties
- forLimitedAccounts → NotificationFilterAction
-
Action for notifications from accounts limited by a moderator.
final
- forNewAccounts → NotificationFilterAction
-
Action for notifications from accounts created less than 30 days ago.
final
- forNotFollowers → NotificationFilterAction
-
Action for notifications from accounts that do not follow you.
final
- forNotFollowing → NotificationFilterAction
-
Action for notifications from accounts you do not follow.
final
- forPrivateMentions → NotificationFilterAction
-
Action for private mention notifications.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- summary → MastodonNotificationPolicySummary?
-
Summary of filtered notifications.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes to JSON.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited