summaryrefslogtreecommitdiff
path: root/lib/matrix_app_service/adapter/room.ex
blob: 160109410f9e2b8d4f839bbad7acc140ab160328 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
defmodule MatrixAppService.Adapter.Room do
  @moduledoc """
  Behaviour for a module that handles rooms that the application service has
  reserved.
  """

  @doc """
  Responds to a room query by alias. If the room exists, implementations should
  create the room (for instance by using
  `MatrixAppService.Client.create_room/1`) then return `:ok`. If the room
  doesn't exist, they should return anything else.
  """
  @callback query_alias(String.t()) :: :ok | Any
end