Skip to content

Commit

Permalink
fix: fixed removal version
Browse files Browse the repository at this point in the history
  • Loading branch information
myConsciousness committed Feb 4, 2023
1 parent 61b7139 commit a9d2067
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions lib/src/service/v1/accounts/accounts_v1_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ abstract class AccountsV1Service {
required File file,
});

@Deprecated('Use lookupAccount instead. Will be removed v1.0.0')
Future<MastodonResponse<Account>> lookupById({
required String accountId,
});

/// View information about a profile.
///
/// ## Parameters
Expand Down Expand Up @@ -1318,6 +1323,12 @@ class _AccountsV1Service extends BaseService implements AccountsV1Service {
dataBuilder: Account.fromJson,
);

@override
Future<MastodonResponse<Account>> lookupById({
required String accountId,
}) async =>
await lookupAccount(accountId: accountId);

@override
Future<MastodonResponse<Account>> lookupAccount({
required String accountId,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/service/v1/statuses/statuses_v1_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ abstract class StatusesV1Service {
required String statusId,
});

@Deprecated('Use lookupPoll instead. Will be removed in v0.5.0')
@Deprecated('Use lookupPoll instead. Will be removed in v1.0.0')
Future<MastodonResponse<Poll>> lookupPollById({required String pollId});

/// Returns a specific poll.
Expand Down Expand Up @@ -294,7 +294,7 @@ abstract class StatusesV1Service {
required List<int> choices,
});

@Deprecated('Use lookupStatus instead. Will be removed in v0.5.0')
@Deprecated('Use lookupStatus instead. Will be removed in v1.0.0')
Future<MastodonResponse<Status>> lookupById({
required String statusId,
});
Expand Down

0 comments on commit a9d2067

Please sign in to comment.