debianize-mobilizon/lib/federation/activity_pub/activity_stream/converter.ex
2020-01-22 02:14:42 +01:00

12 lines
299 B
Elixir

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