FileMessageCreateParams
@objc(SBDFileMessageCreateParams)
public final class FileMessageCreateParams : BaseMessageCreateParams
An object contains set of options to create FileMessage
.
Since
3.0.90-
Binary file data.
file
andfileURL
cannot be set together.Declaration
Swift
@objc public var file: Data?
-
File URL.
file
andfileURL
cannot be set together.Declaration
Swift
@objc public var fileURL: String? { get set }
-
Thumbnail sizes. This parameter is the array of
ThumbnailSize
instance and works for image file only.Declaration
Swift
@objc public var thumbnailSizes: [ThumbnailSize]?
-
File name.
Declaration
Swift
@objc public var fileName: String? { get set }
-
File MIME type.
Declaration
Swift
@objc public var mimeType: String? { get set }
-
File size.
Declaration
Swift
@objc public var fileSize: UInt
-
Initializes an instance of a file message params with binary file.
Declaration
Swift
@objc public init(file: Data)
Parameters
file
A Biniary file to be sent.
Return Value
An initialized file message params
-
Initializes an instance of a file message params with file url.
Declaration
Swift
@objc public init(fileURL: String)
Parameters
fileURL
File url to be sent.
Return Value
An initialized file message params
-
Default constructor.
Declaration
Swift
public override init()
-
Copies this object
Declaration
Swift
public override func copy(with zone: NSZone? = nil) -> Any
Parameters
zone
optional
NSZone
Return Value
FileMessageCreateParams
instance -
Encodes this object.
Declaration
Swift
public override func encode(to encoder: Encoder) throws
Parameters
encoder
Encoder
instance -
Default constructor.
Declaration
Swift
public required init(from decoder: Decoder) throws
Parameters
decoder
Decoder
instance