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
type
The type of attachment - “file”, “audio”, “video”, “image”.
url
The attachment url.
title
The attachment title.
filename
The 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
type
The type of attachment - “file”, “audio”, “video”, “image”.
url
The attachment url.
filename
The name of the attachment file.