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

lib/swagger/client/model/sound.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.Sound do
@moduledoc """
A media file that may be played back.
"""
@derive [Poison.Encoder]
defstruct [
:"id",
:"text",
:"formats"
]
@type t :: %__MODULE__{
:"id" => String.t,
:"text" => String.t,
:"formats" => ListFormatLangPair
}
end
defimpl Poison.Decoder, for: Swagger.Client.Model.Sound do
import Swagger.Client.Deserializer
def decode(value, options) do
value
|> deserialize(:"formats", :struct, Swagger.Client.Model.ListFormatLangPair, options)
end
end