mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-23 08:22:50 +00:00
9c9f1385fb
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
13 lines
377 B
Elixir
13 lines
377 B
Elixir
defmodule Mobilizon.Federation.ActivityStream.Converter do
|
|
@moduledoc """
|
|
Converter behaviour.
|
|
|
|
This module allows to convert from ActivityStream format to our own internal
|
|
one, and back.
|
|
"""
|
|
|
|
@type model_data :: map()
|
|
|
|
@callback as_to_model_data(as_data :: ActivityStream.t()) :: model_data()
|
|
@callback model_to_as(model :: struct()) :: ActivityStream.t()
|
|
end
|