diff options
author | Matias Linares <matiaslina@gmail.com> | 2020-12-27 12:19:17 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@gmail.com> | 2020-12-27 12:19:17 -0300 |
commit | 6883348dafc0e6c58a5478074221f8cca7859716 (patch) | |
tree | 8dd8db05b0f31f2bf3aef81426758b2b658e9f7f /lib/Matrix/Response.pm6 | |
parent | e1abad7a57fd34ffb55c1d57d0b89ee91e55296b (diff) | |
parent | f1d1a526cc4950578e8769fe3c94147777466531 (diff) | |
download | perl6-matrix-client-6883348dafc0e6c58a5478074221f8cca7859716.tar.gz |
Merge branch 'master' into documentation
Diffstat (limited to 'lib/Matrix/Response.pm6')
-rw-r--r-- | lib/Matrix/Response.pm6 | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/lib/Matrix/Response.pm6 b/lib/Matrix/Response.pm6 index 268be84..a0b2896 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; @@ -54,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; @@ -123,7 +133,6 @@ class Tag { } } - class Matrix::Response::Device { has Str $.device-id; has $.display-name; @@ -137,3 +146,11 @@ class Matrix::Response::Device { :last_seen_ts(:$!last-seen-ts)? ) { } } + +class Matrix::Response::MediaStore::Config { + has Int $.upload-size; + + method new(%config) { + self.bless(:upload-size(%config<m.upload.size> // Int)); + } +} |