Packages

This is a Swagger Codegen generated library for the Asterisk RESTful Interface (ARI). This is maintained by the Open Source Telephony Integration Project as a dependency for it's projects.

Current section

Files

Jump to
ostip_exari lib swagger client model endpoint.ex
Raw

lib/swagger/client/model/endpoint.ex

# NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Swagger.Client.Model.Endpoint do
@moduledoc """
An external device that may offer/accept calls to/from Asterisk. Unlike most resources, which have a single unique identifier, an endpoint is uniquely identified by the technology/resource pair.
"""
@derive [Poison.Encoder]
defstruct [
:"technology",
:"resource",
:"state",
:"channel_ids"
]
@type t :: %__MODULE__{
:"technology" => String.t,
:"resource" => String.t,
:"state" => String.t,
:"channel_ids" => ListString
}
end
defimpl Poison.Decoder, for: Swagger.Client.Model.Endpoint do
import Swagger.Client.Deserializer
def decode(value, options) do
value
|> deserialize(:"channel_ids", :struct, Swagger.Client.Model.ListString, options)
end
end