lintel 0.2.0
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
lintel::UserTokenDto Class Reference

#include <UserTokenDto.h>

Inheritance diagram for lintel::UserTokenDto:
lintel::JsonSerializable

Public Member Functions

 UserTokenDto (std::string id)
 
 UserTokenDto ()=default
 
void serialize (rapidjson::Writer< rapidjson::StringBuffer > *writer) const override
 
bool deserialize (const rapidjson::Value &obj) override
 
const std::string & getId () 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)
 

Detailed Description

DTO representing a user token

Constructor & Destructor Documentation

◆ UserTokenDto() [1/2]

lintel::UserTokenDto::UserTokenDto ( std::string  id)
explicit

Construct from a token ID string

Parameters
idThe token ID

◆ UserTokenDto() [2/2]

lintel::UserTokenDto::UserTokenDto ( )
default

Default constructor

Member Function Documentation

◆ deserialize()

bool lintel::UserTokenDto::deserialize ( const rapidjson::Value &  obj)
overridevirtual

Deserialize from JSON

Parameters
objThe JSON value
Returns
True on success

Reimplemented from lintel::JsonSerializable.

◆ getId()

const std::string & lintel::UserTokenDto::getId ( ) const

Get the token ID

Returns
The ID

◆ serialize()

void lintel::UserTokenDto::serialize ( rapidjson::Writer< rapidjson::StringBuffer > *  writer) const
overridevirtual

Serialize to JSON

Parameters
writerThe rapidjson writer

Implements lintel::JsonSerializable.


The documentation for this class was generated from the following file: