Skip to content
Meshline
SDK 1.1.0 · TypeView source on GitHub

Developer guide · API index

Members on this page

Meshline.Sdk

Meshline.Models.Protocol

DirectMessageReference Class

Identifies a direct message by its sender and message identifier.

public sealed record DirectMessageReference : Meshline.Models.Protocol.ProtocolModel, System.IEquatable<Meshline.Models.Protocol.DirectMessageReference>

Inheritance System.Object → ProtocolModel → DirectMessageReference

Implements System.IEquatable<DirectMessageReference>

Properties

DirectMessageReference.From Property

The CAIP-10 account identifier of the message sender.

public string From { get; init; }

Property Value

System.String

DirectMessageReference.MessageId Property

The message's canonical msg_ identifier.

public string MessageId { get; init; }

Property Value

System.String

Methods

DirectMessageReference.Validate(NetworkContext) Method

Validates the referenced sender account and message 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.