ScheduledFileMessageCreateParams
public final class ScheduledFileMessageCreateParams: ScheduledBaseMessageCreateParams
Undocumented
-
The binary file data.
file
andfileURL
cannot be set together.Declaration
Swift
public var file: Data?
-
The file URL.
file
andfileURL
cannot be set together.Since
4.0.0Declaration
Swift
public var fileURL: String?
-
The thumbnail sizes. This parameter is the array of
ThumbnailSize
instance and works for image file only.Since
4.0.0Declaration
Swift
public var thumbnailSizes: [ThumbnailSize]?
-
The file name.
Since
4.0.0Declaration
Swift
public var fileName: String?
-
The file MIME type.
Since
4.0.0Declaration
Swift
public var mimeType: String?
-
The file size.
Since
4.0.0Declaration
Swift
public var fileSize: UInt = 0
-
Initializes an instance of a file message params with binary file.
Declaration
Swift
public init(scheduledAt: Int64, file: Data)
Parameters
file
A Biniary file to be sent.
Return Value
An initialized file message params
-
Initializes and returns a params object for creating a scheduled file message with the given file URL.
Declaration
Swift
public init(scheduledAt: Int64, fileURL: String)
Parameters
fileURL
The file URL to be sent.
Return Value
An initialized file message params.
-
Undocumented
Declaration
Swift
public override func encode(to encoder: Encoder) throws
-
Undocumented
Declaration
Swift
public required init(from decoder: Decoder) throws