summaryrefslogtreecommitdiff
path: root/lib/Matrix/Response.pm6
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@gmail.com>2019-06-29 19:04:10 -0300
committerMatias Linares <matiaslina@gmail.com>2019-06-29 19:04:10 -0300
commit82a19be633aafd305fab93c7e3ea660656ae441a (patch)
tree321f18e9311b8f45cb986130c8d2c2b068ab3506 /lib/Matrix/Response.pm6
parent4f9159b228cb2533eccab11f82690171a1484ee5 (diff)
downloadperl6-matrix-client-82a19be633aafd305fab93c7e3ea660656ae441a.tar.gz
Add device management endpoints
Missing delete methods only
Diffstat (limited to 'lib/Matrix/Response.pm6')
-rw-r--r--lib/Matrix/Response.pm615
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Matrix/Response.pm6 b/lib/Matrix/Response.pm6
index edd4d51..14e2b21 100644
--- a/lib/Matrix/Response.pm6
+++ b/lib/Matrix/Response.pm6
@@ -122,3 +122,18 @@ class Tag {
self.bless(:@tags)
}
}
+
+
+class Matrix::Response::Device {
+ has Str $.device-id;
+ has $.display-name;
+ has $.last-seen-ip;
+ has $.last-seen-ts;
+
+ submethod BUILD(
+ Str :device_id(:$!device-id),
+ :display_name(:$!display-name)?,
+ :last_seen_ip(:$!last-seen-ip)?,
+ :last_seen_ts(:$!last-seen-ts)?
+ ) { }
+}