BotsAttachment
public class BotsAttachment : NSObject
The class that represents an attachment.
-
The type of attachment - “file”, “audio”, “video”, “image”.
Declaration
Swift
public private(set) var type: String? { get } -
The attachment url.
Declaration
Swift
public private(set) var url: String? { get } -
The name of the attachment file.
Declaration
Swift
public private(set) var filename: String? { get } -
The title of the attachment file.
Declaration
Swift
public private(set) var title: String? { get } -
The constructor for initializing a BotsAttachment object.
Declaration
Swift
public init(type: String, url: String, title: String, filename: String)Parameters
typeThe type of attachment - “file”, “audio”, “video”, “image”.
urlThe attachment url.
titleThe attachment title.
filenameThe attachment filename.
-
The constructor for initializing a BotsAttachment object when response is received from server after uploading user attachment.
Declaration
Swift
public init(type: String, url: String, filename: String)Parameters
typeThe type of attachment - “file”, “audio”, “video”, “image”.
urlThe attachment url.
filenameThe name of the attachment file.
BotsAttachment Class Reference