Members on this page
Meshline.Sdk
Meshline.Models.Protocol
ContactRecord Class
Carries a contact relationship and its grants for synchronization between account devices.
public sealed record ContactRecord : Meshline.Models.Protocol.ProtocolModel, System.IEquatable<Meshline.Models.Protocol.ContactRecord>
Inheritance System.Object → ProtocolModel → ContactRecord
Implements System.IEquatable<ContactRecord>
Properties
ContactRecord.Account Property
The account's CAIP-10 identifier.
public string Account { get; init; }
Property Value
ContactRecord.Alias Property
The optional private alias assigned to the contact.
public string? Alias { get; init; }
Property Value
ContactRecord.GrantFromContact Property
The contact's grant permitting this account to contact it, when available.
public Meshline.Models.Protocol.ContactGrant? GrantFromContact { get; init; }
Property Value
ContactRecord.GrantToContact Property
This account's grant permitting the contact to send messages, when available.
public Meshline.Models.Protocol.ContactGrant? GrantToContact { get; init; }
Property Value
ContactRecord.Status Property
The synchronized contact relationship state.
public Meshline.Models.Protocol.ContactRelationshipState Status { get; init; }
Property Value
ContactRecord.UpdatedAt Property
The last update time, in nonnegative Unix seconds, no later than System.DateTimeOffset.MaxValue and at most five minutes ahead of the local clock when validated.
public long UpdatedAt { get; init; }
Property Value
Methods
ContactRecord.Validate(NetworkContext) Method
Validates the contact account, update time, relationship state, alias, and deleted-record grant restrictions.
public override Meshline.Validation.ProtocolViolation? Validate(Meshline.Models.NetworkContext? context=null);
Parameters
context NetworkContext
The optional network context; these field checks do not depend on it.
Returns
ProtocolViolation
The first detected protocol violation, or null if the implemented checks pass.
Remarks
Grant validation, grant direction, and synchronization-batch consistency must be checked separately.