Add concept of "initial items count" in paginated API requests

This commit is contained in:
Salman Ahmed
2022-04-18 22:59:49 +03:00
parent 587f1e2c4f
commit 9d59cd408f
6 changed files with 20 additions and 13 deletions

View File

@ -13,8 +13,8 @@ namespace osu.Game.Online.API.Requests
private readonly BeatmapSetType type;
public GetUserBeatmapsRequest(long userId, BeatmapSetType type, int page = 0, int itemsPerPage = 6)
: base(page, itemsPerPage)
public GetUserBeatmapsRequest(long userId, BeatmapSetType type, int page, int itemsPerPage, int initialItems)
: base(page, itemsPerPage, initialItems)
{
this.userId = userId;
this.type = type;