// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable namespace osu.Game.Online.API.Requests { /// /// Represents a pagination data used for . /// public readonly struct PaginationParameters { /// /// The starting point of the request. /// public int Offset { get; } /// /// The maximum number of items to return in this request. /// public int Limit { get; } public PaginationParameters(int offset, int limit) { Offset = offset; Limit = limit; } public PaginationParameters(int limit) : this(0, limit) { } /// /// Returns a of the next number of items defined by after this. /// /// The limit of the next pagination. public PaginationParameters TakeNext(int limit) => new PaginationParameters(Offset + Limit, limit); } }