10Duke Scale C++ Client
All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
Paging.h
1#ifndef TENDUKE_SE_PAGING_H
2#define TENDUKE_SE_PAGING_H
3
4#include <cstdint>
5#include <string>
6#include <utility>
7
8namespace tenduke { namespace se {
9
13class Paging {
14
15public:
23 explicit Paging(
24 const int32_t offset = -1
25 , const int32_t limit = -1
26 , std::string orderBy = ""
27 , const bool orderAsc = false
28 ) : offset(offset)
29 , limit(limit)
30 , orderBy(std::move(orderBy))
32 {}
33
35 const std::int32_t offset;
37 const std::int32_t limit;
39 const std::string orderBy;
41 const bool orderAsc;
42};
43
44}}
45
46#endif //TENDUKE_SE_PAGING_H
Paging-ocnfiguration for the REST-API.
Definition Paging.h:13
const std::int32_t limit
Number of items to retrieve.
Definition Paging.h:37
Paging(const int32_t offset=-1, const int32_t limit=-1, std::string orderBy="", const bool orderAsc=false)
Constructs new instance.
Definition Paging.h:23
const bool orderAsc
Sort in ascending order?
Definition Paging.h:41
const std::int32_t offset
Start offset.
Definition Paging.h:35
const std::string orderBy
Field to sort by.
Definition Paging.h:39
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7