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

lib/swagger/client/model/mailbox.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.Mailbox do
@moduledoc """
Represents the state of a mailbox.
"""
@derive [Poison.Encoder]
defstruct [
:"name",
:"old_messages",
:"new_messages"
]
@type t :: %__MODULE__{
:"name" => String.t,
:"old_messages" => Int,
:"new_messages" => Int
}
end
defimpl Poison.Decoder, for: Swagger.Client.Model.Mailbox do
import Swagger.Client.Deserializer
def decode(value, options) do
value
|> deserialize(:"old_messages", :struct, Swagger.Client.Model.Int, options)
|> deserialize(:"new_messages", :struct, Swagger.Client.Model.Int, options)
end
end