Current section
Files
Jump to
Current section
Files
lib/ex_stream_client/model/channel_truncated_event.ex
defmodule ExStreamClient.Model.ChannelTruncatedEvent do
@moduledoc "Schema representing a ChannelTruncatedEvent"
use ExStreamClient.JSON
use ExStreamClient.TypeInterner
@enforce_keys [:channel_id, :channel_member_count, :channel_type, :cid, :created_at, :type]
defstruct [
:channel,
:channel_id,
:channel_member_count,
:channel_type,
:cid,
:created_at,
:type
]
@nested_components channel: ExStreamClient.Model.ChannelResponse, created_at: :datetime
def nested_components do
@nested_components
end
@type t :: %__MODULE__{
channel: ExStreamClient.Model.ChannelResponse.t() | nil,
channel_id: String.t(),
channel_member_count: integer(),
channel_type: String.t(),
cid: String.t(),
created_at: DateTime.t() | integer() | String.t(),
type: String.t()
}
end