Members on this page
Meshline.Sdk
Meshline.Models.Protocol
AccountContactSync Class
Synchronizes contact records between devices of the same account or requests a snapshot.
public sealed record AccountContactSync : Meshline.Models.Protocol.TypedProtocolModel, System.IEquatable<Meshline.Models.Protocol.AccountContactSync>
Inheritance System.Object → ProtocolModel → TypedProtocolModel → AccountContactSync
Implements System.IEquatable<AccountContactSync>
Constructors
AccountContactSync() Constructor
Synchronizes contact records between devices of the same account or requests a snapshot.
public AccountContactSync();
Properties
AccountContactSync.Records Property
The contact records included in this synchronization message.
public System.Collections.Immutable.ImmutableArray<Meshline.Models.Protocol.ContactRecord> Records { get; init; }
Property Value
System.Collections.Immutable.ImmutableArray<ContactRecord>
AccountContactSync.RequestSnapshot Property
Whether the receiving account device should send a complete contact snapshot.
public System.Nullable<bool> RequestSnapshot { get; init; }
Property Value
System.Nullable<System.Boolean>
Methods
AccountContactSync.Validate(NetworkContext) Method
Validates contact-record structure, unique accounts, relationship fields, and grant direction.
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.