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