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

lib/swagger/client/model/module.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.Module do
@moduledoc """
Details of an Asterisk module
"""
@derive [Poison.Encoder]
defstruct [
:"name",
:"description",
:"use_count",
:"status",
:"support_level"
]
@type t :: %__MODULE__{
:"name" => String.t,
:"description" => String.t,
:"use_count" => Int,
:"status" => String.t,
:"support_level" => String.t
}
end
defimpl Poison.Decoder, for: Swagger.Client.Model.Module do
import Swagger.Client.Deserializer
def decode(value, options) do
value
|> deserialize(:"use_count", :struct, Swagger.Client.Model.Int, options)
end
end