mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Add support for fetching user guest participations
This commit is contained in:
@ -29,6 +29,7 @@ namespace osu.Game.Online.API.Requests
|
|||||||
Ranked,
|
Ranked,
|
||||||
Loved,
|
Loved,
|
||||||
Pending,
|
Pending,
|
||||||
|
Guest,
|
||||||
Graveyard
|
Graveyard
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -148,6 +148,9 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
[JsonProperty(@"pending_beatmapset_count")]
|
[JsonProperty(@"pending_beatmapset_count")]
|
||||||
public int PendingBeatmapsetCount;
|
public int PendingBeatmapsetCount;
|
||||||
|
|
||||||
|
[JsonProperty(@"guest_beatmapset_count")]
|
||||||
|
public int GuestBeatmapsetCount;
|
||||||
|
|
||||||
[JsonProperty(@"scores_best_count")]
|
[JsonProperty(@"scores_best_count")]
|
||||||
public int ScoresBestCount;
|
public int ScoresBestCount;
|
||||||
|
|
||||||
|
@ -53,6 +53,9 @@ namespace osu.Game.Overlays.Profile.Sections.Beatmaps
|
|||||||
case BeatmapSetType.Pending:
|
case BeatmapSetType.Pending:
|
||||||
return user.PendingBeatmapsetCount;
|
return user.PendingBeatmapsetCount;
|
||||||
|
|
||||||
|
case BeatmapSetType.Guest:
|
||||||
|
return user.GuestBeatmapsetCount;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user