|
lintel 0.2.0
|
#include <UserDto.h>
Public Member Functions | |
| UsersPageDto (const Page< User > &page) | |
| UsersPageDto ()=default | |
| void | serialize (rapidjson::Writer< rapidjson::StringBuffer > *writer) const override |
| bool | deserialize (const rapidjson::Value &obj) override |
| const std::vector< UserDto > & | getUsers () const |
| bool | hasMore () const |
| const std::optional< std::string > & | getNextAfter () const |
Public Member Functions inherited from lintel::JsonSerializable | |
| JsonSerializable ()=default | |
| virtual | ~JsonSerializable ()=default |
| virtual std::string | serialize () const |
| virtual void | deserialize (const std::string &json) |
DTO representing a single page of keyset-paginated users
Construct from a paginated result
| page | The page of users |
|
default |
Default constructor
Deserialize from JSON
| obj | The JSON value |
Reimplemented from lintel::JsonSerializable.
| const std::optional< std::string > & lintel::UsersPageDto::getNextAfter | ( | ) | const |
Get the user DTOs of this page
| bool lintel::UsersPageDto::hasMore | ( | ) | const |
|
overridevirtual |