Class Contact
An entry in the account's contact list.
public sealed class Contact : Entity<string>, IEquatable<Entity<string>>
- Inheritance
-
Contact
- Implements
- Inherited Members
Constructors
Contact(string, string?, Guid?, string?, string?, string?, bool)
An entry in the account's contact list.
public Contact(string id, string? number, Guid? uuid, string? name, string? profileName, string? username, bool blocked)
Parameters
idstringThe identity of the contact (its UUID, otherwise its phone number).
numberstringThe phone number, if known.
uuidGuid?The account identifier (ACI), if known.
namestringThe name given to the contact by the account owner.
profileNamestringThe name the contact set in their Signal profile.
usernamestringThe contact's Signal username.
blockedboolWhether the account blocked the contact.
Properties
DisplayName
The best available display name: name, profile name, username, number, then id.
public string DisplayName { get; }
Property Value
IsBlocked
Whether the account blocked the contact.
public bool IsBlocked { get; }
Property Value
Name
The name given to the contact by the account owner.
public string? Name { get; }
Property Value
Number
The phone number, if known.
public string? Number { get; }
Property Value
ProfileName
The name the contact set in their Signal profile.
public string? ProfileName { get; }
Property Value
Username
The contact's Signal username.
public string? Username { get; }
Property Value
Uuid
The account identifier (ACI), if known.
public Guid? Uuid { get; }
Property Value
- Guid?