1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-25 17:28:05 +00:00
mobilizon/lib/federation/activity_stream/convertible.ex
Thomas Citharel 9c9f1385fb
Introduce group posts
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-07-30 16:55:35 +02:00

11 lines
250 B
Elixir

defprotocol Mobilizon.Federation.ActivityStream.Convertible do
@moduledoc """
Convertible protocol.
"""
@type t :: struct()
@type activity_streams :: map()
@spec model_to_as(t()) :: activity_streams()
def model_to_as(convertible)
end