Simplify offset calculation

This commit is contained in:
smoogipoo
2019-07-19 16:02:33 +09:00
parent 2a66cf36d5
commit 066bee3535
9 changed files with 19 additions and 19 deletions

View File

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