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
RelayLimits.GroupMessageRetention Property
The group-message retention period, in seconds, when advertised.
public System.Nullable<long> GroupMessageRetention { get; init; }
Property Value
RelayLimits.MaxChannelSubscriptions Property
The maximum simultaneous channel subscriptions, when advertised.
public System.Nullable<long> MaxChannelSubscriptions { get; init; }
Property Value
RelayLimits.MaxGroupInviteTtl Property
The maximum group invitation lifetime, in seconds, when advertised.
public System.Nullable<long> MaxGroupInviteTtl { get; init; }
Property Value
RelayLimits.MaxGroupMembers Property
The maximum permitted group membership count, when advertised.
public System.Nullable<long> MaxGroupMembers { get; init; }
Property Value
RelayLimits.MaxGroupSubscriptions Property
The maximum simultaneous group subscriptions, when advertised.
public System.Nullable<long> MaxGroupSubscriptions { get; init; }
Property Value
RelayLimits.MessageRetention Property
The account-message retention period, in seconds.
public long MessageRetention { get; init; }
Property Value
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.