aboutsummaryrefslogtreecommitdiff
path: root/src/entry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/entry.h')
-rw-r--r--src/entry.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/entry.h b/src/entry.h
index 1badd40..e354c82 100644
--- a/src/entry.h
+++ b/src/entry.h
@@ -28,6 +28,7 @@ namespace entry {
virtual nlohmann::json toJson(void) const {
return nlohmann::json({
+ {"entry", entry},
{"name", name},
{"type", type},
{"text", text}
@@ -35,9 +36,10 @@ namespace entry {
}
protected:
- Entry(const nlohmann::json& data) : name(data["name"]), type(data["type"]), text(data["text"]) {};
+ Entry(const nlohmann::json& data) : entry(data["entry"]), name(data["name"]), type(data["type"]), text(data["text"]) {};
private:
+ const std::string entry;
const std::string name;
const std::string type;
const std::string text;