Current section

Files

Jump to
romeo lib romeo stanza message.ex
Raw

lib/romeo/stanza/message.ex

defmodule Romeo.Stanza.Message do
use Romeo.XML
@type jid :: Romeo.JID.t
@type t :: %__MODULE__{
id: binary,
to: jid,
from: jid,
type: binary,
body: binary | list,
html: binary | list | nil,
xml: tuple,
delayed?: boolean
}
defstruct [
id: "",
to: nil,
from: nil,
type: "normal",
body: "",
html: nil,
xml: nil,
delayed?: false
]
end