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

@ -14,8 +14,8 @@ namespace osu.Game.Online.API.Requests
private readonly ScoreType type;
private readonly RulesetInfo ruleset;
public GetUserScoresRequest(long userId, ScoreType type, int page = 0, int itemsPerPage = 5, RulesetInfo ruleset = null)
: base(page, itemsPerPage)
public GetUserScoresRequest(long userId, ScoreType type, int page, int itemsPerPage, int initialItems, RulesetInfo ruleset = null)
: base(page, itemsPerPage, initialItems)
{
this.userId = userId;
this.type = type;