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
ValueGuidThe UUID.
Properties
Value
The UUID.
public Guid Value { get; init; }
Property Value
Methods
Parse(string)
Parses a UUID in any format accepted by Parse(string).
public static AccountId Parse(string value)
Parameters
valuestringThe UUID text.
Returns
- AccountId
The account id.
Exceptions
- FormatException
valueis 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)