Agent

@objc(ZDKAgent)
public final class Agent : NSObject, DataConvertible, ReflectedStringConvertible

The ZDKAgent model has information about an agent in a chat session, such as their backend id represented as nick, their display name, their avatar, and if they’re currently typing.

  • ID associated with the agent

    Declaration

    Swift

    @objc
    public let nick: String
  • The display name of the agent

    Declaration

    Swift

    @objc
    public let displayName: String
  • The URL of the agent’s avatar if it’s present

    Declaration

    Swift

    @objc
    public let avatar: URL?
  • Whether the agent is currently typing in the chat

    Declaration

    Swift

    @objc
    public internal(set) var isTyping: Bool { get }
  • Returns a Boolean value that indicates whether the receiver and a given object are equal.

    Declaration

    Swift

    @objc
    override public func isEqual(_ object: Any?) -> Bool

    Parameters

    object

    the object to compare against