Table of Contents

Class Mention

Namespace
Signal.Domain.Messaging
Assembly
Signal.Domain.dll

A mention of a user inside a message body.

public sealed record Mention : IEquatable<Mention>
Inheritance
Mention
Implements
Inherited Members

Constructors

Mention(string, int, int, string?)

A mention of a user inside a message body.

public Mention(string Author, int Start, int Length, string? Name = null)

Parameters

Author string

Phone number or UUID of the mentioned user.

Start int

Start position of the mention in the text (UTF-16 code units).

Length int

Length of the mention placeholder in the text.

Name string

Display name of the mentioned user (received mentions only).

Properties

Author

Phone number or UUID of the mentioned user.

public string Author { get; init; }

Property Value

string

Length

Length of the mention placeholder in the text.

public int Length { get; init; }

Property Value

int

Name

Display name of the mentioned user (received mentions only).

public string? Name { get; init; }

Property Value

string

Start

Start position of the mention in the text (UTF-16 code units).

public int Start { get; init; }

Property Value

int