From 24fa000eba9f778311b196e4df255952b6ac92bc Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Sun, 3 Feb 2019 23:28:07 -0300 Subject: Add support for room tags --- lib/Matrix/Response.pm6 | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/Matrix/Response.pm6') 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.keys; + self.bless(:@tags) + } +} -- cgit v1.2.3-54-g00ecf