ChatAttachment

@objc(ZDKChatAttachment)
public final class ChatAttachment : NSObject, DataConvertible, ReflectedStringConvertible

The ZDKChatAttachment model, contains information about attachments that were sent or received by the visitor.

  • Name of the attachment

    Declaration

    Swift

    @objc
    public let name: String
  • Mimetype associated with the attachment

    Declaration

    Swift

    @objc
    public let mimeType: String
  • The size of the attachment in kb

    Declaration

    Swift

    @objc
    public let size: Int
  • url

    The remote url where the attachemt is stored

    Declaration

    Swift

    @objc
    public let url: String
  • The local url where the attachemt is stored

    Declaration

    Swift

    @objc
    public let localURL: URL?
  • The attachmentError is provided, when attachment upload has failed

    Declaration

    Swift

    public internal(set) var attachmentError: ChatAttachmentError? { get }
  • Declaration

    Swift

    @objc
    public convenience init(name: String,
                            mimeType: String,
                            size: Int,
                            url: String,
                            localURL: URL?)
  • 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

  • Declaration

    Swift

    override public var description: String { get }
  • Declaration

    Swift

    override public var debugDescription: String { get }