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
header
A structure that contains header fields for the attachment.
seq
The sequence number of attachment.
isEnd
Indicates whether this attachment is the last one.
type
The mime type of attachment.
content
The binary data.