diff options
author | Matias Linares <matiaslina@gmail.com> | 2020-09-06 19:38:12 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@gmail.com> | 2020-09-06 19:38:12 -0300 |
commit | 80d50c14866f6e58ee57792a383920a7e8a1274a (patch) | |
tree | 49e0b5976f74427bb627c88a60b6626d3b20dd13 /lib/Matrix/Response.pm6 | |
parent | ae506f4258324f77b8644459c1cb0c18359d793b (diff) | |
download | perl6-matrix-client-80d50c14866f6e58ee57792a383920a7e8a1274a.tar.gz |
Add media store config method
Diffstat (limited to 'lib/Matrix/Response.pm6')
-rw-r--r-- | lib/Matrix/Response.pm6 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Matrix/Response.pm6 b/lib/Matrix/Response.pm6 index 268be84..ec93cf3 100644 --- a/lib/Matrix/Response.pm6 +++ b/lib/Matrix/Response.pm6 @@ -123,7 +123,6 @@ class Tag { } } - class Matrix::Response::Device { has Str $.device-id; has $.display-name; @@ -137,3 +136,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)); + } +} |