The pagination class.

This class contains the cursor for the next query and the number of records on the page.

The class instance is returned when you make a paginated query.

Type Parameters

  • T

Constructors

Properties

Constructors

  • Type Parameters

    • T

    Parameters

    • params: {
          list?: T[];
          opt?: {
              map: ((obj: any) => any);
          };
          pageCount: number;
      }
      • Optionallist?: T[]
      • Optionalopt?: {
            map: ((obj: any) => any);
        }
        • map: ((obj: any) => any)
            • (obj): any
            • Parameters

              • obj: any

              Returns any

      • pageCount: number

    Returns ChatPageResult<T>

Properties

list?: T[]

The data of the generic List type.

pageCount: number

The number of records on the current page.

If the value of PageCount is smaller than the number of records that you expect to get on each page, the current page is the last page.