mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-24 17:01:45 +00:00
11 lines
287 B
Elixir
11 lines
287 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.
|
|
"""
|
|
|
|
@callback as_to_model_data(map) :: map
|
|
@callback model_to_as(struct) :: map
|
|
end
|