InstanceV1Service class abstract
Constructors
- InstanceV1Service({required String instance, required ClientContext context})
-
Returns the new instance of InstanceV1Service.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createMarkAnnouncementAsRead(
{required String announcementId}) → Future< MastodonResponse< Empty> > - Allows a user to mark the announcement as read.
-
createReactionToAnnouncement(
{required String announcementId, required String emojiName}) → Future< MastodonResponse< Empty> > - React to an announcement with an emoji.
-
destroyReactionToAnnouncement(
{required String announcementId, required String emojiName}) → Future< MastodonResponse< Empty> > - Undo a react emoji to an announcement.
-
lookupAccounts(
{int? offset, int? limit, InstanceAccountOrder? order, bool? onlyLocal}) → Future< MastodonResponse< List< >Account> > - List accounts visible in the directory.
-
lookupActiveAnnouncements(
) → Future< MastodonResponse< List< >Announcement> > - See all currently active announcements set by admins.
-
lookupAnnouncements(
) → Future< MastodonResponse< List< >Announcement> > - See all announcements set by admins.
-
lookupAvailableEmoji(
) → Future< MastodonResponse< List< >Emoji> > - Returns custom emojis that are available on the server.
-
lookupBlockedDomains(
) → Future< MastodonResponse< List< >BlockedDomain> > - Obtain a list of domains that have been blocked.
-
lookupConnectedDomains(
) → Future< MastodonResponse< List< >String> > - Domains that this instance is aware of.
-
lookupExtendedDescription(
) → Future< MastodonResponse< ExtendedDescription> > - Obtain an extended description of this server
-
lookupInformation(
) → Future< MastodonResponse< Instance> > - Obtain general information about the server.
-
lookupRules(
) → Future< MastodonResponse< List< >Rule> > - Rules that the users of this service should follow.
-
lookupTrendingLinks(
{int? limit}) → Future< MastodonResponse< List< >TrendsLink> > - Links that have been shared more than others.
-
lookupTrendingStatuses(
{int? limit}) → Future< MastodonResponse< List< >Status> > - Statuses that have been interacted with more than others.
-
lookupTrendingTags(
{int? limit}) → Future< MastodonResponse< List< >Tag> > - Tags that are being used more frequently within the past week.
-
lookupWeeklyActivities(
) → Future< MastodonResponse< List< >InstanceActivity> > - Instance activity over the last 3 months, binned weekly.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited