MastodonPushSubscriptionRequest class
Web Push subscription creation request.
Used with POST /api/v1/push/subscription.
Constructors
- MastodonPushSubscriptionRequest({required String endpoint, required String p256dh, required String auth, bool? standard, MastodonPushAlertSettings? alerts, String? policy})
-
const
Properties
- alerts → MastodonPushAlertSettings?
-
Settings per notification type.
final
- auth → String
-
Authentication secret (Base64url-encoded).
final
- endpoint → String
-
URL for sending notifications.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- p256dh → String
-
User agent public key (Base64url-encoded P-256 ECDH public key).
final
- policy → String?
-
Notification policy (all / followed / follower / none).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- standard → bool?
-
Whether to conform to the standard Web Push specification.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts to a JSON map for the request.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited