export interface IPagedResponse { dataPage: T[] totalCount: number } export class PagedResponse implements IPagedResponse { dataPage: T[] = [] totalCount = 0 constructor(dataPage: T[], totalCount: number) { this.dataPage = dataPage this.totalCount = totalCount } } export interface IPagedResponseWithTotalValue extends IPagedResponse { totalValue: number }