diff options
author | Pierre de Lacroix <pierre@pdelacroix.com> | 2021-03-03 19:04:28 +0100 |
---|---|---|
committer | Pierre de Lacroix <pierre@pdelacroix.com> | 2021-03-03 19:04:28 +0100 |
commit | 67918ce9700c3ddf7f5bb6a8d380dd2977be8379 (patch) | |
tree | 8d29f13fc05c9bdcdc1ea580c67c3c82dd757864 /lib/matrix_app_service/client_behaviour.ex | |
parent | use polyjuice_client from kazarma branch (diff) |
refacto and format
Diffstat (limited to 'lib/matrix_app_service/client_behaviour.ex')
-rw-r--r-- | lib/matrix_app_service/client_behaviour.ex | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/matrix_app_service/client_behaviour.ex b/lib/matrix_app_service/client_behaviour.ex index e373b73..156bed7 100644 --- a/lib/matrix_app_service/client_behaviour.ex +++ b/lib/matrix_app_service/client_behaviour.ex @@ -5,7 +5,13 @@ defmodule MatrixAppService.ClientBehaviour do TODO: example """ - @type client_options :: {:base_url, String.t()} | MatrixAppService.Client.LowLevel.create_opts() + @type create_opts :: [ + access_token: String.t() | nil, + user_id: String.t() | nil, + device_id: String.t() | nil, + storage: Polyjuice.Client.Storage.t() | nil + ] + @type client_options :: {:base_url, String.t()} | create_opts() @callback client() :: Polyjuice.Client.LowLevel.t() @@ -23,5 +29,5 @@ defmodule MatrixAppService.ClientBehaviour do {: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 + @callback put_displayname(Polyjuice.Client.LowLevel.t(), String.t(), String.t()) :: :ok | any end |