2020-01-22 22:40:40 +01:00
|
|
|
defprotocol Mobilizon.Federation.ActivityStream.Convertible do
|
2019-09-22 18:29:13 +02:00
|
|
|
@moduledoc """
|
|
|
|
Convertible protocol.
|
|
|
|
"""
|
|
|
|
|
2020-07-09 17:24:28 +02:00
|
|
|
@type t :: struct()
|
|
|
|
@type activity_streams :: map()
|
2019-09-22 18:29:13 +02:00
|
|
|
|
2020-07-09 17:24:28 +02:00
|
|
|
@spec model_to_as(t()) :: activity_streams()
|
2019-09-22 18:29:13 +02:00
|
|
|
def model_to_as(convertible)
|
|
|
|
end
|