Attachment
public struct Attachment
A structure that contains data and headers for the attachment.
This is sub-data of Event
-
A structure that contains header fields for the attachment.
Declaration
Swift
public let header: Header -
The sequence number of attachment.
Declaration
Swift
public let seq: Int32 -
Indicates whether this attachment is the last one.
Declaration
Swift
public let isEnd: Bool -
The mime type of attachment.
Declaration
Swift
public let type: String -
The binary data.
Declaration
Swift
public let content: Data -
Creates an instance of an
Attachment.Declaration
Swift
public init(header: Header, seq: Int32, isEnd: Bool, type: String, content: Data)Parameters
headerA structure that contains header fields for the attachment.
seqThe sequence number of attachment.
isEndIndicates whether this attachment is the last one.
typeThe mime type of attachment.
contentThe binary data.
View on GitHub
Attachment Structure Reference