argos/dmp-frontend/src/app/models/data-table/DataTableRequest.ts

16 lines
455 B
TypeScript
Raw Normal View History

2018-02-02 16:24:06 +01:00
import { ColumnOrderings } from './ColumnOrderings';
2018-10-05 17:00:54 +02:00
import { BaseCriteria } from '../criteria/BaseCriteria';
import { RequestItem } from '../criteria/RequestItem';
2017-12-14 14:10:56 +01:00
2017-12-19 10:53:52 +01:00
export class DataTableRequest<T> extends RequestItem<T> {
2017-12-14 14:10:56 +01:00
offset = 0;
length = 0;
2018-02-02 16:24:06 +01:00
public orderings: ColumnOrderings;
constructor(offset: number, length: number, orderings: ColumnOrderings) {
2017-12-19 10:53:52 +01:00
super();
2017-12-14 14:10:56 +01:00
this.length = length;
this.offset = offset;
2018-02-02 16:24:06 +01:00
this.orderings = orderings;
2017-12-14 14:10:56 +01:00
}
}