ContactCenterEvent
public enum ContactCenterEvent
Enumeration of the events which can be received from the server or sent to the server.
- Tag: ContactCenterEvent
-
A new chat message is received from the server or being sent to the server. Direction: S<->C
Declaration
Swift
case chatSessionMessage(messageID: String?, partyID: String?, message: String, timestamp: Date?)Parameters
messageIDa unique ID of the message within the session
partyIDa unique ID of the party who sent the message. Agent parties are reported by
chatSessionPartyJoinedevent. Client party ID always matches the chat ID.messagemessage content
timestampTimestamp of the event
-
Indicates that a message has been delivered to each party. Direction: S<->C
Declaration
Swift
case chatSessionMessageDelivered(messageID: String?, partyID: String?, timestamp: Date?)Parameters
messageIDa unique ID of the message within the session; received in
chatSessionMessageevent or sent by thesendChatMessagerequestpartyIDa unique ID of the party the message has been delivered to
timestampTimestamp of the event
-
Indicates that a message has been read Direction: S<->C
Declaration
Swift
case chatSessionMessageRead(messageID: String?, partyID: String?, timestamp: Date?)Parameters
messageIDa unique ID of the message within the session; received in
chatSessionMessageevent or sent by thesendChatMessagerequestpartyIDa unique ID of the party the message who has read the message
timestampTimestamp of the event
-
Updates the current state of the chat session. If the state is failed, the client application shall assume that the chat session no longer exists. Direction: S->C
Declaration
Swift
case chatSessionStatus(state: ContactCenterChatSessionState, estimatedWaitTime: Int)Parameters
statesession state structure
estimatedWaitTimean estimated time the session may spend in the queue before an agent is available
-
Informs that a CRM case has been set or cleared for the chat session. Once case is set, application may use getCaseHistory and closeCase methods. Direction: S->C
Declaration
Swift
case chatSessionCaseSet(caseID: String?, timestamp: Date)Parameters
caseIDan ID of the case. Could be empty if scenario unassigned the case previously assigned to the session
timestampTimestamp of the event
-
Indicates that a new party (a new agent) has joined the chat session. Direction: S->C
Declaration
Swift
case chatSessionPartyJoined(partyID: String, firstName: String?, lastName: String?, displayName: String?, type: ContactCenterChatSessionPartyType, timestamp: Date)Parameters
partyIDunique ID of the party within the session. Only agent (internal) parties are reported
firstNameParty’s first name, optional
lastNameParty’s last name, optional
displayNameParty’s display name, optional
typeParty’s type
timestampTimestamp of the event
-
Indicates that a party has left the chat session. Direction: S->C
Declaration
Swift
case chatSessionPartyLeft(partyID: String, timestamp: Date)Parameters
partyIDunique ID of the party within the session
timestampTimestamp of the event
-
Indicates that the party started typing a message Direction: S<->C
Declaration
Swift
case chatSessionTyping(partyID: String?, timestamp: Date?)Parameters
partyIDunique ID of the party within the session
timestampTimestamp of the event
-
Indicates that the party stopped typing a message Direction: S<->C
Declaration
Swift
case chatSessionNotTyping(partyID: String?, timestamp: Date?)Parameters
partyIDunique ID of the party within the session
timestampTimestamp of the event
-
Contains a new geographic location Direction: S<->C
Declaration
Swift
case chatSessionLocation(partyID: String?, url: String?, latitude: Float, longitude: Float, timestamp: Date?)Parameters
partyIDunique ID of the sender party
urllocation URL, optional
latitudeGPS latitude
longitudeGPS longitude
timestampTimestamp of the event
-
Indicates that a system has requested an application to display a message. Typically used to display inactivity warning. Direction: S->C
Declaration
Swift
case chatSessionTimeoutWarning(message: String, timestamp: Date)Parameters
messagea text message to display
timestampTimestamp of the event
-
Indicates that a system has ended the chat session due to the user’s inactivity. Direction: S->C
Declaration
Swift
case chatSessionInactivityTimeout(message: String, timestamp: Date)Parameters
messagea text message to display
timestampTimestamp of the event
-
Indicates a normal termination of the chat session (e.g., when the chat session is closed by the agent). The client application shall assume that the chat session no longer exists. Direction: S->C
Declaration
Swift
case chatSessionEnded -
Client sends the message to end current chat conversation but keep the session open. Direction: C->S
Declaration
Swift
case chatSessionDisconnect -
Client sends the message to end chat session. Direction: C->S
Declaration
Swift
case chatSessionEnd
ContactCenterEvent Enumeration Reference