|
lintel 0.2.0
|
#include <UserLoginDto.h>
Public Member Functions | |
| UserLoginDto (const UserLogin &userLogin) | |
| UserLoginDto (std::string userName, std::string password) | |
| UserLoginDto ()=default | |
| const std::string & | getUserName () const |
| const std::string & | getPassword () const |
| void | serialize (rapidjson::Writer< rapidjson::StringBuffer > *writer) const override |
| bool | deserialize (const rapidjson::Value &obj) override |
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 for user login credentials
Construct from a UserLogin model
| userLogin | The source user login |
| lintel::UserLoginDto::UserLoginDto | ( | std::string | userName, |
| std::string | password | ||
| ) |
Construct from user name and password
| userName | The user name |
| password | The password |
|
default |
Default constructor
Deserialize from JSON
| obj | The JSON value |
Reimplemented from lintel::JsonSerializable.
| const std::string & lintel::UserLoginDto::getPassword | ( | ) | const |
Get the password
| const std::string & lintel::UserLoginDto::getUserName | ( | ) | const |
Get the user name
|
overridevirtual |