MatrixAppService.ClientBehaviour behaviour (MatrixAppService v0.3.0) View Source
Behaviour defining callbacks implemented in MatrixAppService.Client. Can be used to mock the client, for instance with mox:
TODO: example
Link to this section Summary
Link to this section Types
Specs
client_options() :: {:base_url, String.t()} | create_options()
Specs
create_options() :: [ access_token: String.t() | nil, user_id: String.t() | nil, device_id: String.t() | nil, storage: Polyjuice.Client.Storage.t() | nil ]
Specs
Link to this section Callbacks
Specs
client() :: Polyjuice.Client.LowLevel.t()
Specs
client([client_options()]) :: Polyjuice.Client.LowLevel.t()
Specs
create_alias(String.t(), String.t(), client_options()) :: {:ok, String.t()} | Any
Specs
create_attachment_message( Polyjuice.Client.LowLevel.t(), data_format(), Keyword.t() ) :: {:ok, Polyjuice.Client.Attachment.attachment()} | Any
Specs
Specs
create_room(Keyword.t(), client_options()) :: {:ok, map()} | Any
Specs
Specs
get_alias(String.t(), client_options()) :: {:ok, String.t()} | Any
Specs
Specs
get_data(String.t(), String.t(), client_options()) :: {:ok, map()} | any()
Specs
Specs
get_profile(String.t(), client_options()) :: {:ok, map()} | any()
Specs
Specs
join(String.t(), client_options()) :: :ok | any()
Specs
Specs
put_avatar_url(String.t(), String.t(), client_options()) :: :ok | any()
Specs
Specs
Specs
Specs
put_displayname(String.t(), String.t(), client_options()) :: :ok | any()
Specs
Specs
redact_message(String.t(), String.t(), String.t(), client_options()) :: {:ok, String.t()} | Any
Specs
register() :: {:ok, String.t()} | Any
Specs
Specs
register(list(), client_options()) :: {:ok, String.t()} | Any
Specs
Specs
search_user(String.t(), integer(), client_options()) :: {:ok, String.t()} | Any
Specs
Specs
send_message(String.t(), String.t(), client_options()) :: {:ok, String.t()} | Any
Specs
Specs
upload(binary(), Keyword.t(), client_options()) :: {:ok, String.t()} | Any