aboutsummaryrefslogtreecommitdiff
path: root/quotest
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-05-04 21:12:29 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-05-08 17:43:58 +0200
commit843f7a0ac2619a2f2863d457cdeaa03707255793 (patch)
tree3c518b467d318dc54b36b0bcf17cdb719d9e3cfe /quotest
parent4070706fcc91cd46054b00c5f3a267a9d8c44fb7 (diff)
downloadlibquotient-843f7a0ac2619a2f2863d457cdeaa03707255793.tar.gz
libquotient-843f7a0ac2619a2f2863d457cdeaa03707255793.zip
basic*EventJson() -> *Event::basicJson()
This makes it easier and more intuitive to build a minimal JSON payload for a given event type. A common basicJson() call point is also convenient in template contexts (see next commits).
Diffstat (limited to 'quotest')
-rw-r--r--quotest/quotest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/quotest/quotest.cpp b/quotest/quotest.cpp
index 792faabd..861cfba0 100644
--- a/quotest/quotest.cpp
+++ b/quotest/quotest.cpp
@@ -531,10 +531,10 @@ public:
: RoomEvent(typeId(), jo)
{}
CustomEvent(int testValue)
- : RoomEvent(typeId(),
- basicEventJson(matrixTypeId(),
- QJsonObject { { "testValue"_ls,
- toJson(testValue) } }))
+ : RoomEvent(TypeId,
+ Event::basicJson(TypeId,
+ QJsonObject { { "testValue"_ls,
+ toJson(testValue) } }))
{}
auto testValue() const { return contentPart<int>("testValue"_ls); }