Packages
ostip_exari
0.1.0
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
Current section
Files
lib/swagger/client/model/peer_status_change.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.PeerStatusChange do
@moduledoc """
The state of a peer associated with an endpoint has changed.
"""
@derive [Poison.Encoder]
defstruct [
:"endpoint",
:"peer"
]
@type t :: %__MODULE__{
:"endpoint" => Endpoint,
:"peer" => Peer
}
end
defimpl Poison.Decoder, for: Swagger.Client.Model.PeerStatusChange do
import Swagger.Client.Deserializer
def decode(value, options) do
value
|> deserialize(:"endpoint", :struct, Swagger.Client.Model.Endpoint, options)
|> deserialize(:"peer", :struct, Swagger.Client.Model.Peer, options)
end
end