Table of Contents

Class Contact

Namespace
Signal.Domain.Entities
Assembly
Signal.Domain.dll

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

id string

The identity of the contact (its UUID, otherwise its phone number).

number string

The phone number, if known.

uuid Guid?

The account identifier (ACI), if known.

name string

The name given to the contact by the account owner.

profileName string

The name the contact set in their Signal profile.

username string

The contact's Signal username.

blocked bool

Whether 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

string

IsBlocked

Whether the account blocked the contact.

public bool IsBlocked { get; }

Property Value

bool

Name

The name given to the contact by the account owner.

public string? Name { get; }

Property Value

string

Number

The phone number, if known.

public string? Number { get; }

Property Value

string

ProfileName

The name the contact set in their Signal profile.

public string? ProfileName { get; }

Property Value

string

Username

The contact's Signal username.

public string? Username { get; }

Property Value

string

Uuid

The account identifier (ACI), if known.

public Guid? Uuid { get; }

Property Value

Guid?