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 application.ex
Raw

lib/swagger/client/model/application.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.Application do
@moduledoc """
Details of a Stasis application
"""
@derive [Poison.Encoder]
defstruct [
:"name",
:"channel_ids",
:"bridge_ids",
:"endpoint_ids",
:"device_names"
]
@type t :: %__MODULE__{
:"name" => String.t,
:"channel_ids" => ListString,
:"bridge_ids" => ListString,
:"endpoint_ids" => ListString,
:"device_names" => ListString
}
end
defimpl Poison.Decoder, for: Swagger.Client.Model.Application do
import Swagger.Client.Deserializer
def decode(value, options) do
value
|> deserialize(:"channel_ids", :struct, Swagger.Client.Model.ListString, options)
|> deserialize(:"bridge_ids", :struct, Swagger.Client.Model.ListString, options)
|> deserialize(:"endpoint_ids", :struct, Swagger.Client.Model.ListString, options)
|> deserialize(:"device_names", :struct, Swagger.Client.Model.ListString, options)
end
end