aboutsummaryrefslogtreecommitdiff
path: root/lib/Matrix/Response.pm6
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@gmail.com>2020-12-27 11:53:50 -0300
committerMatias Linares <matiaslina@gmail.com>2020-12-27 11:53:50 -0300
commit2983d424bad511d5c50c52caf5daedff27eb2ada (patch)
treee452b23ae59da46f348cd9ef2ad9ccb21f2230b4 /lib/Matrix/Response.pm6
parentd5b3361c9ceeac3ed3a90dab35b12b0bd4ab7612 (diff)
downloadperl6-matrix-client-2983d424bad511d5c50c52caf5daedff27eb2ada.tar.gz
Complete messages method for Matrix::Client::Room
Diffstat (limited to 'lib/Matrix/Response.pm6')
-rw-r--r--lib/Matrix/Response.pm66
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Matrix/Response.pm6 b/lib/Matrix/Response.pm6
index cc9e7a8..a0b2896 100644
--- a/lib/Matrix/Response.pm6
+++ b/lib/Matrix/Response.pm6
@@ -58,6 +58,12 @@ sub gather-events($room-id, $from) {
}
}
+class Matrix::Response::Messages {
+ has $.start;
+ has $.end;
+ has Matrix::Response::RoomEvent @.messages;
+}
+
class Matrix::Response::Sync {
has Str $.next-batch;
has Matrix::Response::Event @.presence;