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

RelayLimits Class

Contains relay retention periods and optional channel and group limits.

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

Inheritance System.Object → ProtocolModel → RelayLimits

Implements System.IEquatable<RelayLimits>

Properties

RelayLimits.ChannelTimelineRetention Property

The channel timeline retention period, in seconds, when advertised.

public System.Nullable<long> ChannelTimelineRetention { get; init; }

Property Value

System.Nullable<System.Int64>

RelayLimits.GroupMessageRetention Property

The group-message retention period, in seconds, when advertised.

public System.Nullable<long> GroupMessageRetention { get; init; }

Property Value

System.Nullable<System.Int64>

RelayLimits.MaxChannelSubscriptions Property

The maximum simultaneous channel subscriptions, when advertised.

public System.Nullable<long> MaxChannelSubscriptions { get; init; }

Property Value

System.Nullable<System.Int64>

RelayLimits.MaxGroupInviteTtl Property

The maximum group invitation lifetime, in seconds, when advertised.

public System.Nullable<long> MaxGroupInviteTtl { get; init; }

Property Value

System.Nullable<System.Int64>

RelayLimits.MaxGroupMembers Property

The maximum permitted group membership count, when advertised.

public System.Nullable<long> MaxGroupMembers { get; init; }

Property Value

System.Nullable<System.Int64>

RelayLimits.MaxGroupSubscriptions Property

The maximum simultaneous group subscriptions, when advertised.

public System.Nullable<long> MaxGroupSubscriptions { get; init; }

Property Value

System.Nullable<System.Int64>

RelayLimits.MessageRetention Property

The account-message retention period, in seconds.

public long MessageRetention { get; init; }

Property Value

System.Int64

Methods

RelayLimits.Validate(NetworkContext) Method

Validates positive retention, capacity, and invitation-lifetime limits and nonnegative subscription limits.

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.