summaryrefslogtreecommitdiff
path: root/lib/matrix_app_service/client_behaviour.ex
diff options
context:
space:
mode:
authorPierre de Lacroix <pierre@pdelacroix.com>2020-12-30 23:54:49 +0100
committerPierre de Lacroix <pierre@pdelacroix.com>2020-12-30 23:54:49 +0100
commit0729f9cd2094b19a9bb30915d7355b83acf01c37 (patch)
treeabc94bd8db088c895d0ad57549d0e1ac994f57a2 /lib/matrix_app_service/client_behaviour.ex
parentdefine client behaviour (diff)
fix types
Diffstat (limited to 'lib/matrix_app_service/client_behaviour.ex')
-rw-r--r--lib/matrix_app_service/client_behaviour.ex7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/matrix_app_service/client_behaviour.ex b/lib/matrix_app_service/client_behaviour.ex
index cf56286..6c69846 100644
--- a/lib/matrix_app_service/client_behaviour.ex
+++ b/lib/matrix_app_service/client_behaviour.ex
@@ -12,9 +12,16 @@ defmodule MatrixAppService.ClientBehaviour do
@callback client([client_options()]) ::
Polyjuice.Client.LowLevel.t()
@callback create_room(Keyword.t()) :: {:ok, String.t()} | Any
+ @callback create_room(Keyword.t(), client_options()) :: {:ok, String.t()} | Any
@callback create_alias(String.t(), String.t(), client_options()) :: {:ok, String.t()} | Any
@callback send_message(String.t(), String.t(), client_options()) :: {:ok, String.t()} | Any
+ @callback register() ::
+ {:ok, String.t()} | Any
+ @callback register(Polyjuice.Client.LowLevel.register_opts()) ::
+ {:ok, String.t()} | Any
@callback register(Polyjuice.Client.LowLevel.register_opts(), client_options()) ::
{:ok, String.t()} | Any
@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 modify_displayname(Polyjuice.Client.LowLevel.t(), String.t(), String.t()) :: :ok | any
end