Table of Contents

Struct AccountId

Namespace
Signal.Domain.ValueObjects
Assembly
Signal.Domain.dll

A Signal account identifier (ACI), a UUID that identifies an account independently of its phone number. Used to address users who hide their phone number.

public readonly record struct AccountId : IParsable<AccountId>, IEquatable<AccountId>
Implements
Inherited Members

Constructors

AccountId(Guid)

A Signal account identifier (ACI), a UUID that identifies an account independently of its phone number. Used to address users who hide their phone number.

public AccountId(Guid Value)

Parameters

Value Guid

The UUID.

Properties

Value

The UUID.

public Guid Value { get; init; }

Property Value

Guid

Methods

Parse(string)

Parses a UUID in any format accepted by Parse(string).

public static AccountId Parse(string value)

Parameters

value string

The UUID text.

Returns

AccountId

The account id.

Exceptions

FormatException

value is not a UUID.

ToString()

Returns the UUID in the hyphenated lower-case form used by the API.

public override string ToString()

Returns

string

E.g. 8f2b0d6e-5c1a-4b7e-9a0f-2d3c4b5a6e7f.

TryParse(string?, out AccountId)

Tries to parse a UUID.

public static bool TryParse(string? value, out AccountId id)

Parameters

value string

The UUID text.

id AccountId

The account id when the method returns true.

Returns

bool

true if value is a UUID.