debianize-mobilizon/lib/service/activity_pub/converter.ex
2019-09-26 17:45:47 +02:00

12 lines
281 B
Elixir

defmodule Mobilizon.Service.ActivityPub.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