Different thread message types.
An opDispatch, constructing one function for each member in MessageType.
String content body of message, where applicable.
Whether or not this message has been processed.
Bundled shared Sendable payload, where applicable.
Whether or not the action requested should be done quietly.
The MessageType of this thread message.
Collection of static functions used to construct thread messages, for passing information of different kinds yet still as one type, to be able to store them in arrays for later processing.
The type of the message is defined as a MessageType in ThreadMessage.MessageType. Recipients will have to do a (final) switch over that enum to deal with messages accordingly.