mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 06:53:03 +00:00
fix linting issues
This commit is contained in:
@@ -5,21 +5,6 @@ import { hasValue } from '../../shared/empty.util';
|
||||
* Represents the state of a paginated response
|
||||
*/
|
||||
export class PageInfo {
|
||||
constructor(
|
||||
options?: {
|
||||
elementsPerPage: number,
|
||||
totalElements: number,
|
||||
totalPages: number,
|
||||
currentPage: number
|
||||
}
|
||||
) {
|
||||
if (hasValue(options)) {
|
||||
this.elementsPerPage = options.elementsPerPage;
|
||||
this.totalElements = options.totalElements;
|
||||
this.totalPages = options.totalPages;
|
||||
this.currentPage = options.currentPage;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The number of elements on a page
|
||||
@@ -59,4 +44,20 @@ export class PageInfo {
|
||||
|
||||
@autoserialize
|
||||
self: string;
|
||||
|
||||
constructor(
|
||||
options?: {
|
||||
elementsPerPage: number,
|
||||
totalElements: number,
|
||||
totalPages: number,
|
||||
currentPage: number
|
||||
}
|
||||
) {
|
||||
if (hasValue(options)) {
|
||||
this.elementsPerPage = options.elementsPerPage;
|
||||
this.totalElements = options.totalElements;
|
||||
this.totalPages = options.totalPages;
|
||||
this.currentPage = options.currentPage;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user