From dd71c27fa34860719c137b80456f6b018637468a Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Tue, 22 Jun 2021 23:30:15 -0300 Subject: Add first implementation of Matrix::Client:Admin --- lib/Matrix/Client/Admin.rakumod | 65 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 lib/Matrix/Client/Admin.rakumod (limited to 'lib') diff --git a/lib/Matrix/Client/Admin.rakumod b/lib/Matrix/Client/Admin.rakumod new file mode 100644 index 0000000..71a30d5 --- /dev/null +++ b/lib/Matrix/Client/Admin.rakumod @@ -0,0 +1,65 @@ +use Matrix::Client::Requester; + +unit class Matrix::Client::Admin does Matrix::Client::Requester; + +submethod TWEAK { + $!client-endpoint = '/_synapse/admin/v1'; +} + +method account-validity() { + X::NYI.new( + feature => &?ROUTINE.name + ).throw; +} + +method delete-group() { + X::NYI.new( + feature => &?ROUTINE.name + ).throw; +} + +method media-admin-api() { + X::NYI.new( + feature => &?ROUTINE.name + ).throw; +} + +method purge-history-api() { + X::NYI.new( + feature => &?ROUTINE.name + ).throw; +} + +method purge-remote-media() { + X::NYI.new( + feature => &?ROUTINE.name + ).throw; +} + +method purge-room() { + X::NYI.new( + feature => &?ROUTINE.name + ).throw; +} + +method register-api() { + X::NYI.new( + feature => &?ROUTINE.name + ).throw; +} + +method server-notices() { + X::NYI.new( + feature => &?ROUTINE.name + ).throw; +} + +method user-admin-api() { + X::NYI.new( + feature => &?ROUTINE.name + ).throw; +} + +method version-api() { + from-json($.get('/server_version').content) +} -- cgit v1.2.3-70-g09d2