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 attachmentDeclaration
Swift
@objc public let name: String
-
Mimetype
associated with the attachmentDeclaration
Swift
@objc public let mimeType: String
-
The
size
of the attachment in kbDeclaration
Swift
@objc public let size: Int
-
The remote
url
where the attachemt is storedDeclaration
Swift
@objc public let url: String
-
The local
url
where the attachemt is storedDeclaration
Swift
@objc public let localURL: URL?
-
The
attachmentError
is provided, when attachment upload has failedDeclaration
Swift
public internal(set) var attachmentError: ChatAttachmentError? { 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