mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-21 02:50:14 +08:00
tweaks (#1862)
* opt: linter * tweaks * opt: TopImage * update * remove repaintBoundary [skip ci] --------- Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
99128b2641
commit
6cda3a1880
@@ -74,7 +74,7 @@ abstract final class SponsorBlock {
|
||||
return getErrMsg(res);
|
||||
}
|
||||
|
||||
static Future<LoadingState<Null>> voteOnSponsorTime({
|
||||
static Future<LoadingState<void>> voteOnSponsorTime({
|
||||
required String uuid,
|
||||
int? type,
|
||||
SegmentType? category,
|
||||
@@ -93,7 +93,7 @@ abstract final class SponsorBlock {
|
||||
return res.statusCode == 200 ? const Success(null) : getErrMsg(res);
|
||||
}
|
||||
|
||||
static Future<LoadingState<Null>> viewedVideoSponsorTime(String uuid) async {
|
||||
static Future<LoadingState<void>> viewedVideoSponsorTime(String uuid) async {
|
||||
final res = await Request().post(
|
||||
_api(SponsorBlockApi.viewedVideoSponsorTime),
|
||||
data: {'UUID': uuid},
|
||||
@@ -102,7 +102,7 @@ abstract final class SponsorBlock {
|
||||
return res.statusCode == 200 ? const Success(null) : getErrMsg(res);
|
||||
}
|
||||
|
||||
static Future<LoadingState<Null>> uptimeStatus() async {
|
||||
static Future<LoadingState<void>> uptimeStatus() async {
|
||||
final res = await Request().get(
|
||||
_api(SponsorBlockApi.uptimeStatus),
|
||||
options: options,
|
||||
|
||||
Reference in New Issue
Block a user