lintel 0.2.0
Loading...
Searching...
No Matches
UserTokenDto.h
Go to the documentation of this file.
1#ifndef LINTEL_USERTOKENDTO_H
2#define LINTEL_USERTOKENDTO_H
3
5
6namespace lintel {
9{
10private:
12 std::string m_id;
13
15 static struct Shapes
16 {
17 const char *const ID = "id";
18 } shape;
19
20public:
23 explicit UserTokenDto(std::string id);
24
26 UserTokenDto() = default;
27
30 void serialize(rapidjson::Writer<rapidjson::StringBuffer> *writer) const override;
31
35 bool deserialize(const rapidjson::Value &obj) override;
36
39 const std::string &getId() const;
40};
41
42}// namespace lintel
43#endif// LINTEL_USERTOKENDTO_H
Definition JsonSerializable.h:17
Definition UserTokenDto.h:9
UserTokenDto(std::string id)
void serialize(rapidjson::Writer< rapidjson::StringBuffer > *writer) const override
const std::string & getId() const
bool deserialize(const rapidjson::Value &obj) override
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9