mobilizon/lib/service/activity_pub/converter.ex

12 lines
281 B
Elixir
Raw Normal View History

defmodule Mobilizon.Service.ActivityPub.Converter do
@moduledoc """
2019-09-22 16:29:13 +00:00
Converter behaviour.
2019-09-22 16:29:13 +00:00
This module allows to convert from ActivityStream format to our own internal
one, and back.
"""
2019-09-22 16:29:13 +00:00
@callback as_to_model_data(map) :: map
@callback model_to_as(struct) :: map
end