XmtpElixirSdk.Content (xmtp_elixir_sdk v0.1.2)

Copy Markdown

Core content helpers used by messages and conversations.

Summary

Types

Functions

content_type_id(arg1)

@spec content_type_id(t()) :: XmtpElixirSdk.Types.ContentTypeId.t()

content_type_to_string(content_type)

@spec content_type_to_string(XmtpElixirSdk.Types.ContentTypeId.t()) :: String.t()

decode(content)

@spec decode(term()) :: {:ok, t()} | {:error, XmtpElixirSdk.Error.t()}

encode_actions(content)

encode_attachment(attachment)

encode_group_updated(content)

encode_intent(content)

encode_markdown(markdown)

@spec encode_markdown(String.t()) :: XmtpElixirSdk.Content.Markdown.t()

encode_multi_remote_attachment(content)

encode_reaction(reference, content, action)

@spec encode_reaction(String.t(), String.t(), :added | :removed) ::
  XmtpElixirSdk.Content.Reaction.t()

encode_read_receipt()

@spec encode_read_receipt() :: XmtpElixirSdk.Content.ReadReceipt.t()

encode_remote_attachment(attachment)

encode_reply(reference, inner_content)

@spec encode_reply(String.t(), term()) :: XmtpElixirSdk.Content.Reply.t()

encode_text(text)

@spec encode_text(String.t()) :: XmtpElixirSdk.Content.Text.t()

encode_text_reply(reference, text)

@spec encode_text_reply(String.t(), String.t()) :: XmtpElixirSdk.Content.Reply.t()

encode_transaction_reference(content)

encode_wallet_send_calls(content)

fallback_for(arg1)

@spec fallback_for(t()) :: String.t() | nil