Members on this page
Meshline.Sdk
Meshline.Models.Protocol
DirectMessage Class
Contains the plaintext body, attachments, and reply reference encrypted in a direct message.
public sealed record DirectMessage : Meshline.Models.Protocol.TypedProtocolModel, System.IEquatable<Meshline.Models.Protocol.DirectMessage>
Inheritance System.Object → ProtocolModel → TypedProtocolModel → DirectMessage
Implements System.IEquatable<DirectMessage>
Constructors
DirectMessage() Constructor
Contains the plaintext body, attachments, and reply reference encrypted in a direct message.
public DirectMessage();
Properties
DirectMessage.Attachments Property
The content references attached to the message.
public System.Nullable<System.Collections.Immutable.ImmutableArray<Meshline.Models.Protocol.ContentReference>> Attachments { get; init; }
Property Value
System.Nullable<System.Collections.Immutable.ImmutableArray<ContentReference>>
DirectMessage.Body Property
The optional plaintext message body.
public Meshline.Models.Protocol.MessageBody? Body { get; init; }
Property Value
DirectMessage.ReplyTo Property
The referenced direct message being replied to, or null for a new message.
public Meshline.Models.Protocol.DirectMessageReference? ReplyTo { get; init; }
Property Value
Methods
DirectMessage.Validate(NetworkContext) Method
Validates plaintext content, attachment references, and the optional direct-message reply identifier.
public override Meshline.Validation.ProtocolViolation? Validate(Meshline.Models.NetworkContext? context=null);
Parameters
context NetworkContext
The optional network context passed to nested validation when needed; field-only validation may ignore it.
Returns
ProtocolViolation
The first detected protocol violation, or null if the implemented checks pass.