import { Order } from "../enums/page-order.enum";

/**
 * Structure of page metadata
 */
export interface PageMeta {
    /**
     * Total search results
     */
    total: number;

    /**
     * Number of the page
     */
    pagenum: number;

    /**
     * Order of the elements on the page
     */
    order: Order;

    /**
     * Flag that indicates presence of the next page
     */
    hasNext: boolean;

    /**
     * Flag that indicates presence of the previous page
     */ 
    hasPrev: boolean;

    /**
     *  Number of elements on the page
     */
    pagesize: number;
}