2020-01-22 02:14:42 +01:00
|
|
|
defmodule Mobilizon.Federation.ActivityPub.ActivityStream.Converter do
|
2019-05-22 14:12:11 +02:00
|
|
|
@moduledoc """
|
2019-09-22 18:29:13 +02:00
|
|
|
Converter behaviour.
|
2019-05-22 14:12:11 +02:00
|
|
|
|
2019-09-22 18:29:13 +02:00
|
|
|
This module allows to convert from ActivityStream format to our own internal
|
|
|
|
one, and back.
|
2019-05-22 14:12:11 +02:00
|
|
|
"""
|
2019-07-30 16:40:59 +02:00
|
|
|
|
2019-09-22 18:29:13 +02:00
|
|
|
@callback as_to_model_data(map) :: map
|
|
|
|
@callback model_to_as(struct) :: map
|
2019-07-30 16:40:59 +02:00
|
|
|
end
|