ScheduledFileMessageCreateParams

@objc(SBDScheduledFileMessageCreateParams)
public class ScheduledFileMessageCreateParams : ScheduledBaseMessageCreateParams

Undocumented

  • The binary file data. file and fileURL cannot be set together.

    Declaration

    Swift

    @objc
    public var file: Data? { get set }
  • The file URL. file and fileURL cannot be set together.

    Since

    4.0.0

    Declaration

    Swift

    @objc
    public var fileURL: String? { get set }
  • The thumbnail sizes. This parameter is the array of ThumbnailSize instance and works for image file only.

    Since

    4.0.0

    Declaration

    Swift

    @objc
    public var thumbnailSizes: [ThumbnailSize]?
  • The file name.

    Since

    4.0.0

    Declaration

    Swift

    @objc
    public var fileName: String? { get set }
  • The file MIME type.

    Since

    4.0.0

    Declaration

    Swift

    @objc
    public var mimeType: String? { get set }
  • The file size.

    Since

    4.0.0

    Declaration

    Swift

    @objc
    public var fileSize: UInt
  • Initializes an instance of a file message params with binary file.

    Declaration

    Swift

    @objc
    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

    @objc
    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