Attachment
public struct Attachment : Codable
A structure that contains data and headers for the attachment.
This is sub-data of Directive
-
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: Int
-
The binary data.
Declaration
Swift
public let content: Data
-
Indicates whether this attachment is the last one.
Declaration
Swift
public let isEnd: Bool
-
The message identifier of the directive.
Declaration
Swift
public let parentMessageId: String
-
The mime type of attachment.
Declaration
Swift
public let mediaType: String
-
Creates an instance of an
Attachment
.Declaration
Swift
public init(header: Header, seq: Int, content: Data, isEnd: Bool, parentMessageId: String, mediaType: String)
Parameters
header
A structure that contains header fields for the attachment.
seq
The sequence number of attachment.
content
The binary data.
isEnd
Indicates whether this attachment is the last one.
parentMessageId
The message identifier of the directive.
mediaType
The mime type of attachment.