SyncMessage
public struct SyncMessage : Codable
The schema for .data.messages
(only relevant for .control
messges of type .syncResponse
)
-
Undocumented
Declaration
Swift
public var attachments: [Attachment]
-
Undocumented
Declaration
Swift
public var expiration: Date?
-
Undocumented
Declaration
Swift
public var expirationUpdate: Date?
-
Undocumented
Declaration
Swift
public var flags: UInt64?
-
Undocumented
Declaration
Swift
public var id: UUID
-
Undocumented
Declaration
Swift
public var incoming: Bool?
-
Undocumented
Declaration
Swift
public var keyChange: Bool?
-
Undocumented
Declaration
Swift
public var members: [UUID]
-
Undocumented
Declaration
Swift
public var mentions: [UUID]?
-
Undocumented
Declaration
Swift
public var messageRef: UUID?
-
Undocumented
Declaration
Swift
public var monitors: [UUID]?
-
Undocumented
Declaration
Swift
public var pendingMembers: [UUID]?
-
Undocumented
Declaration
Swift
public var plain: String?
-
Undocumented
Declaration
Swift
public var read: Date?
-
Undocumented
Declaration
Swift
public var received: Date
-
Undocumented
Declaration
Swift
public var replies: [UUID]?
-
Undocumented
Declaration
Swift
public var safe_html: String?
-
Undocumented
Declaration
Swift
public var sender: UUID
-
Undocumented
Declaration
Swift
public var senderDevice: UInt32
-
Undocumented
Declaration
Swift
public var source: UUID?
-
Undocumented
Declaration
Swift
public var sourceDevice: UInt32?
-
Undocumented
Declaration
Swift
public var sent: Date
-
Undocumented
Declaration
Swift
public var threadId: UUID
-
Undocumented
Declaration
Swift
public var type: MessageType
-
Undocumented
Declaration
Swift
public var userAgent: String?
-
Undocumented
Declaration
Swift
public var actions: [String]?
-
Undocumented
Declaration
Swift
public var actionOptions: [String]?
-
Undocumented
Declaration
Swift
public var action: String?
-
Undocumented
Declaration
Swift
public var serverAge: Date?
-
Undocumented
Declaration
Swift
public var timestamp: Date
-
init(attachments:expiration:expirationUpdate:flags:id:incoming:keyChange:members:mentions:messageRef:monitors:pendingMembers:plain:read:received:replies:safe_html:sender:senderDevice:source:sourceDevice:sent:threadId:type:userAgent:actions:actionOptions:action:serverAge:timestamp:)
Initialize from components
Declaration
Swift
public init( attachments: [Attachment], expiration: Date? = nil, expirationUpdate: Date? = nil, flags: UInt64? = nil, id: UUID, incoming: Bool? = nil, keyChange: Bool? = nil, members: [UUID], mentions: [UUID]? = nil, messageRef: UUID? = nil, monitors: [UUID]? = nil, pendingMembers: [UUID]? = nil, plain: String? = nil, read: Date? = nil, received: Date, replies: [UUID]? = nil, safe_html: String? = nil, sender: UUID, senderDevice: UInt32, source: UUID? = nil, sourceDevice: UInt32? = nil, sent: Date, threadId: UUID, type: MessageType, userAgent: String? = nil, actions: [String]? = nil, actionOptions: [String]? = nil, action: String? = nil, serverAge: Date? = nil, timestamp: Date)