summaryrefslogtreecommitdiff
path: root/lib/matrix_app_service/client_behaviour.ex
diff options
context:
space:
mode:
authorPierre de Lacroix <pierre@pdelacroix.com>2021-06-28 17:46:55 +0200
committerPierre de Lacroix <pierre@pdelacroix.com>2021-06-28 17:46:55 +0200
commita7b411da89dd7b5e1c415754dd231450d9d838d6 (patch)
tree8ea5664d8c8a6363ceb58c19ab38cbb08a314773 /lib/matrix_app_service/client_behaviour.ex
parentMerge branch 'add-redacts-to-event-struct' into 'master' (diff)
add delegations for Client.join/2 and Client.upload/3
Diffstat (limited to 'lib/matrix_app_service/client_behaviour.ex')
-rw-r--r--lib/matrix_app_service/client_behaviour.ex2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/matrix_app_service/client_behaviour.ex b/lib/matrix_app_service/client_behaviour.ex
index 7a1f7fe..b7e2602 100644
--- a/lib/matrix_app_service/client_behaviour.ex
+++ b/lib/matrix_app_service/client_behaviour.ex
@@ -31,5 +31,7 @@ defmodule MatrixAppService.ClientBehaviour do
@callback get_profile(Polyjuice.Client.LowLevel.t(), String.t()) :: {:ok, map()} | any
@callback get_data(Polyjuice.Client.LowLevel.t(), String.t(), String.t()) :: {:ok, map()} | any
@callback put_displayname(Polyjuice.Client.LowLevel.t(), String.t(), String.t()) :: :ok | any
+ @callback put_avatar_url(Polyjuice.Client.LowLevel.t(), String.t(), String.t()) :: :ok | any
@callback join(Polyjuice.Client.LowLevel.t(), String.t()) :: :ok | any
+ @callback upload(Polyjuice.Client.LowLevel.t(), binary, Keyword.t()) :: {:ok, String.t()} | Any
end