ChatLog

@objc(ZDKChatLog)
public class ChatLog : NSObject, ChatLogProtocol, ReflectedStringConvertible

Base class for chat log events that may occur in a chat session

Different LogTypes

  • id

    ID

    Declaration

    Swift

    @objc
    public let id: String
  • Identifier associated with the sender. Used to distinguish sender

    Declaration

    Swift

    @objc
    public let nick: String
  • Display Name

    Declaration

    Swift

    @objc
    public let displayName: String
  • Timestamp of when the message was sent

    Declaration

    Swift

    @objc
    public let createdTimestamp: TimeInterval
  • Timestamp of when the message was modified

    Declaration

    Swift

    @objc
    public let lastModifiedTimestamp: TimeInterval
  • The type of event the log is

    Declaration

    Swift

    @objc
    public let type: ChatLogType
  • Log is marked as failed when it’s delivery failed

    Declaration

    Swift

    public internal(set) var status: DeliveryStatus { get }
  • Who sent the message can be user/agent/trigger

    Declaration

    Swift

    @objc
    public var participant: ChatParticipant { get }
  • If the log was created by visitor

    Declaration

    Swift

    @objc
    public var createdByVisitor: Bool { get }
  • A textual representation of this instance.

    Declaration

    Swift

    @objc
    override public var description: String { 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