Members on this page
Meshline.Sdk
Meshline.Models.Protocol
GroupMessage Class
Contains plaintext message content encrypted within a group message envelope.
public sealed record GroupMessage : Meshline.Models.Protocol.TypedProtocolModel, System.IEquatable<Meshline.Models.Protocol.GroupMessage>
Inheritance System.Object → ProtocolModel → TypedProtocolModel → GroupMessage
Implements System.IEquatable<GroupMessage>
Constructors
GroupMessage() Constructor
Contains plaintext message content encrypted within a group message envelope.
public GroupMessage();
Properties
GroupMessage.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>>
GroupMessage.Body Property
The optional plaintext message body.
public Meshline.Models.Protocol.MessageBody? Body { get; init; }
Property Value
GroupMessage.ReplyToSeq Property
The group message sequence being replied to, or null for a new message.
public System.Nullable<long> ReplyToSeq { get; init; }
Property Value
Methods
GroupMessage.Validate(NetworkContext) Method
Validates plaintext group content, attachments, and the optional reply sequence.
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.