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

#include <HistoryDto.h>

Inheritance diagram for lintel::HistoryDto:
lintel::JsonSerializable

Public Member Functions

 HistoryDto (const HistoryEntry &historyEntry)
 
 HistoryDto ()=default
 
std::string getProcessName () const
 
std::string getServiceName () const
 
std::string getLabel () const
 
std::string getText () const
 
std::string getUuid () const
 
std::chrono::sys_time< std::chrono::microseconds > getCreatedTimestamp () 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)
 

Detailed Description

DTO representing a single history entry

Constructor & Destructor Documentation

◆ HistoryDto() [1/2]

lintel::HistoryDto::HistoryDto ( const HistoryEntry &  historyEntry)

Construct from a HistoryEntry model

Parameters
historyEntryThe source history entry

◆ HistoryDto() [2/2]

lintel::HistoryDto::HistoryDto ( )
default

Default constructor

Member Function Documentation

◆ deserialize()

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

Deserialize from JSON

Parameters
objThe JSON value
Returns
True on success

Reimplemented from lintel::JsonSerializable.

◆ getCreatedTimestamp()

std::chrono::sys_time< std::chrono::microseconds > lintel::HistoryDto::getCreatedTimestamp ( ) const
inline

Get the creation timestamp

Returns
The timestamp

◆ getLabel()

std::string lintel::HistoryDto::getLabel ( ) const
inline

Get the label

Returns
The label

◆ getProcessName()

std::string lintel::HistoryDto::getProcessName ( ) const
inline

Get the process name

Returns
The process name

◆ getServiceName()

std::string lintel::HistoryDto::getServiceName ( ) const
inline

Get the service name

Returns
The service name

◆ getText()

std::string lintel::HistoryDto::getText ( ) const
inline

Get the text content

Returns
The text

◆ getUuid()

std::string lintel::HistoryDto::getUuid ( ) const
inline

Get the UUID

Returns
The UUID string

◆ serialize()

void lintel::HistoryDto::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: