Safe Haskell | None |
---|---|
Language | Haskell2010 |
Types and instances for implementing webhook interface for DMCC.
Synopsis
- data WHEvent = WHEvent {
- agentId :: AgentId
- event :: AgentEvent
- data AgentEvent
- = TelephonyEvent { }
- | StateChange { }
- | TelephonyEventError { }
- | RequestError { }
- data Event
- = UnknownEvent
- | DeliveredEvent { }
- | DivertedEvent { }
- | OriginatedEvent { }
- | EstablishedEvent { }
- | FailedEvent { }
- | ConnectionClearedEvent { }
- | HeldEvent { }
- | RetrievedEvent { }
- | ConferencedEvent { }
- | TransferedEvent { }
Documentation
Web hook event.
WHEvent | |
|
data AgentEvent Source #
Events/errors are published to external clients of the agents and may be used by agent subscribers to provide information to user.
TelephonyEvent | A telephony-related event, along with an updated snapshot. |
StateChange | Arrives when an agent state change has been observed. |
TelephonyEventError | An error caused by a telephony-related event. |
RequestError | An error caused by a request from this agent. |
Instances
Show AgentEvent Source # | |
Defined in DMCC.Agent showsPrec :: Int -> AgentEvent -> ShowS # show :: AgentEvent -> String # showList :: [AgentEvent] -> ShowS # | |
ToJSON AgentEvent Source # | |
Defined in DMCC.Agent toJSON :: AgentEvent -> Value # toEncoding :: AgentEvent -> Encoding # toJSONList :: [AgentEvent] -> Value # toEncodingList :: [AgentEvent] -> Encoding # | |
FromJSON AgentEvent Source # | |
Defined in DMCC.Agent parseJSON :: Value -> Parser AgentEvent # parseJSONList :: Value -> Parser [AgentEvent] # |
DMCC event.
UnknownEvent | |
DeliveredEvent | Precedes every established/cleared event. |
| |
DivertedEvent | |
OriginatedEvent | |
| |
EstablishedEvent | |
FailedEvent | |
ConnectionClearedEvent | |
| |
HeldEvent | |
RetrievedEvent | |
ConferencedEvent | |
TransferedEvent | |