Class PaginationQuery

java.lang.Object
io.github.matyrobbrt.curseforgeapi.request.query.PaginationQuery
All Implemented Interfaces:
Query

public class PaginationQuery extends Object implements Query
  • Method Details

    • of

      public static PaginationQuery of(int index)
      Parameters:
      index - a zero based index of the first item to include in the response
      Returns:
      the query
    • of

      public static PaginationQuery of(int index, int pageSize)
      Parameters:
      index - a zero based index of the first item to include in the response
      pageSize - the number of items to include in the response
      Returns:
      the query
    • index

      public PaginationQuery index(int index)
      Parameters:
      index - a zero based index of the first item to include in the response
      Returns:
      the query instance
    • pageSize

      public PaginationQuery pageSize(int pageSize)
      Parameters:
      pageSize - the number of items to include in the response
      Returns:
      the query instance
    • toArgs

      public Arguments toArgs()
      Specified by:
      toArgs in interface Query