diff options
author | Matias Linares <matiaslina@gmail.com> | 2020-12-26 22:33:31 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@gmail.com> | 2020-12-26 22:33:31 -0300 |
commit | d5b3361c9ceeac3ed3a90dab35b12b0bd4ab7612 (patch) | |
tree | 4be8cf0e6d8a95d2c041359a5e01ee90fda144cf /lib/Matrix/Response.pm6 | |
parent | 8f423e22081a8579bb37a61b16ade04617e50ddc (diff) | |
download | perl6-matrix-client-d5b3361c9ceeac3ed3a90dab35b12b0bd4ab7612.tar.gz |
Implement membership endpoints for Matrix::Client::Room
This implements for room endpoints:
* Join a room
* Get a single event
* Get states
* Get room aliases
* Get room members
Diffstat (limited to 'lib/Matrix/Response.pm6')
-rw-r--r-- | lib/Matrix/Response.pm6 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Matrix/Response.pm6 b/lib/Matrix/Response.pm6 index ec93cf3..cc9e7a8 100644 --- a/lib/Matrix/Response.pm6 +++ b/lib/Matrix/Response.pm6 @@ -23,6 +23,10 @@ class Matrix::Response::StateEvent is Matrix::Response::RoomEvent { has $.state_key; } +class Matrix::Response::MemberEvent is Matrix::Response::StateEvent { + has $.type is required where 'm.room.member'; +} + class Matrix::Response::Timeline { has Matrix::Response::Event @.events; has Bool $limited; |