2020-01-22 01:14:42 +00:00
|
|
|
defmodule Mobilizon.Federation.ActivityPub.Activity do
|
2019-09-12 23:35:03 +00:00
|
|
|
@moduledoc """
|
|
|
|
Represents an activity.
|
|
|
|
"""
|
|
|
|
|
2019-09-16 00:07:44 +00:00
|
|
|
@type t :: %__MODULE__{
|
|
|
|
data: String.t(),
|
|
|
|
local: boolean,
|
|
|
|
actor: Actor.t(),
|
|
|
|
recipients: [String.t()]
|
|
|
|
}
|
|
|
|
|
2019-09-12 23:35:03 +00:00
|
|
|
defstruct [
|
|
|
|
:data,
|
|
|
|
:local,
|
|
|
|
:actor,
|
2019-09-16 00:07:44 +00:00
|
|
|
:recipients
|
2019-09-12 23:35:03 +00:00
|
|
|
]
|
|
|
|
end
|