summaryrefslogtreecommitdiff
path: root/lib/Matrix/Response.pm6
diff options
context:
space:
mode:
authorMatias Linares <matias@deprecated.org>2019-02-03 23:28:07 -0300
committerMatias Linares <matias@deprecated.org>2019-02-03 23:28:07 -0300
commit24fa000eba9f778311b196e4df255952b6ac92bc (patch)
tree7fc4dfed7f362844fc23b0d71a7823733931892d /lib/Matrix/Response.pm6
parent3d6d5a4828e602837886358918e324f34e37b962 (diff)
downloadperl6-matrix-client-24fa000eba9f778311b196e4df255952b6ac92bc.tar.gz
Add support for room tags
Diffstat (limited to 'lib/Matrix/Response.pm6')
-rw-r--r--lib/Matrix/Response.pm69
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Matrix/Response.pm6 b/lib/Matrix/Response.pm6
index d8f68f0..edd4d51 100644
--- a/lib/Matrix/Response.pm6
+++ b/lib/Matrix/Response.pm6
@@ -113,3 +113,12 @@ class Presence {
:currently_active(:$!currently-active) = False
) { }
}
+
+class Tag {
+ has @.tags;
+
+ method new(%json) {
+ my @tags = %json<tags>.keys;
+ self.bless(:@tags)
+ }
+}