Packages

A client for [Stream](https://getstream.io) REST APIs in Elixir - auto generated from their [OpenAPI specification](https://github.com/GetStream/protocol).

Current section

Files

Jump to
ex_stream_client lib ex_stream_client model poll_votes_response.ex
Raw

lib/ex_stream_client/model/poll_votes_response.ex

defmodule ExStreamClient.Model.PollVotesResponse do
@moduledoc "Schema representing a PollVotesResponse"
use ExStreamClient.JSON
use ExStreamClient.TypeInterner
@enforce_keys [:duration, :votes]
defstruct [:duration, :next, :prev, :votes]
@nested_components votes: ExStreamClient.Model.PollVoteResponseData
def nested_components do
@nested_components
end
@type t :: %__MODULE__{
duration: String.t(),
next: String.t() | nil,
prev: String.t() | nil,
votes: [ExStreamClient.Model.PollVoteResponseData.t()]
}
end