MastodonAnnouncement class

Server announcement.

Annotations

Constructors

MastodonAnnouncement({required String id, required String content, required bool allDay, required bool read, required List<MastodonCustomEmoji> emojis, required List<MastodonAnnouncementReaction> reactions, required List<MastodonTag> tags, required List<MastodonMention> mentions, required List<MastodonAnnouncementStatus> statuses, DateTime? startsAt, DateTime? endsAt, DateTime? publishedAt, DateTime? updatedAt})
const
MastodonAnnouncement.fromJson(Map<String, dynamic> json)
factory

Properties

allDay bool
Whether this is an all-day event.
final
content String
Body of the announcement (HTML).
final
emojis List<MastodonCustomEmoji>
Custom emojis in the body.
final
endsAt DateTime?
End timestamp.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Internal ID of the announcement.
final
mentions List<MastodonMention>
Mentions in the body.
final
publishedAt DateTime?
Timestamp when published.
final
reactions List<MastodonAnnouncementReaction>
List of reactions.
final
read bool
Whether the announcement has been read.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startsAt DateTime?
Start timestamp.
final
statuses List<MastodonAnnouncementStatus>
Statuses referenced in the body.
final
tags List<MastodonTag>
Hashtags in the body.
final
updatedAt DateTime?
Timestamp when last updated.
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