MastodonAdminDomainBlock class
Admin-level domain block information.
Detailed information about a domain that is blocked from federation.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
- MastodonAdminDomainBlock({required String id, required String domain, required String digest, required MastodonAdminDomainBlockSeverity severity, bool rejectMedia = false, bool rejectReports = false, String? privateComment, String? publicComment, bool obfuscate = false, DateTime? createdAt})
-
const
-
MastodonAdminDomainBlock.fromJson(Map<
String, dynamic> json) -
factory
Properties
- createdAt → DateTime?
-
Timestamp when the domain was blocked.
final
- digest → String
-
SHA256 digest of the domain.
final
- domain → String
-
Blocked domain.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Database ID of the domain block.
final
- obfuscate → bool
-
Whether to obfuscate the domain name in public displays.
final
- privateComment → String?
-
Private comment for administrators.
final
- publicComment → String?
-
Public-facing comment.
final
- rejectMedia → bool
-
Whether to reject media attachments.
final
- rejectReports → bool
-
Whether to reject reports.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → MastodonAdminDomainBlockSeverity
-
Severity level of the block.
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