Amarula.Content.Event (amarula v0.4.1)

View Source

A received event (content of a %Amarula.Msg{type: :event}).

  • :name — the event title.
  • :description — its description (nil if none).
  • :location — an %Amarula.Content.Location{} if the event has one, else nil.
  • :join_link — a call/meeting link.
  • :start_time / :end_time — unix-seconds timestamps (nil if absent).
  • :extra_guests_allowed? — whether guests may invite others.
  • :canceled? — whether the event was canceled.

Summary

Functions

Normalize a %Proto.Message.EventMessage{} into a %Amarula.Content.Event{}.

Types

t()

@type t() :: %Amarula.Content.Event{
  canceled?: boolean(),
  description: String.t() | nil,
  end_time: integer() | nil,
  extra_guests_allowed?: boolean(),
  join_link: String.t() | nil,
  location: Amarula.Content.Location.t() | nil,
  name: String.t() | nil,
  start_time: integer() | nil
}

Functions

from_proto(m)

@spec from_proto(struct()) :: t()

Normalize a %Proto.Message.EventMessage{} into a %Amarula.Content.Event{}.