aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/event_context.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-08-07 16:55:06 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-08-07 16:55:06 +0200
commitf7cbefe5ad626ae1798a5d7bb7546e89ad336acd (patch)
treebccb4e74683b9ceed9000938da495976cbfa70c8 /lib/csapi/event_context.h
parent1f52b5a2da9bce4d25f4c897370e58c8b6d56ba1 (diff)
downloadlibquotient-f7cbefe5ad626ae1798a5d7bb7546e89ad336acd.tar.gz
libquotient-f7cbefe5ad626ae1798a5d7bb7546e89ad336acd.zip
API files: reformat after .clang-format change
See 000b5730.
Diffstat (limited to 'lib/csapi/event_context.h')
-rw-r--r--lib/csapi/event_context.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/lib/csapi/event_context.h b/lib/csapi/event_context.h
index 6a49769f..4e50edf3 100644
--- a/lib/csapi/event_context.h
+++ b/lib/csapi/event_context.h
@@ -58,16 +58,10 @@ public:
// Result properties
/// A token that can be used to paginate backwards with.
- QString begin() const
- {
- return loadFromJson<QString>("start"_ls);
- }
+ QString begin() const { return loadFromJson<QString>("start"_ls); }
/// A token that can be used to paginate forwards with.
- QString end() const
- {
- return loadFromJson<QString>("end"_ls);
- }
+ QString end() const { return loadFromJson<QString>("end"_ls); }
/// A list of room events that happened just before the
/// requested event, in reverse-chronological order.
@@ -77,10 +71,7 @@ public:
}
/// Details of the requested event.
- RoomEventPtr event()
- {
- return takeFromJson<RoomEventPtr>("event"_ls);
- }
+ RoomEventPtr event() { return takeFromJson<RoomEventPtr>("event"_ls); }
/// A list of room events that happened just after the
/// requested event, in chronological order.
@@ -90,10 +81,7 @@ public:
}
/// The state of the room at the last event returned.
- StateEvents state()
- {
- return takeFromJson<StateEvents>("state"_ls);
- }
+ StateEvents state() { return takeFromJson<StateEvents>("state"_ls); }
};
} // namespace Quotient