Table of Contents

Class ReactionContext

Namespace
Signal.Application.Reactions
Assembly
Signal.Application.dll

Everything about a reaction that triggered an OnReactionAttribute method.

public sealed class ReactionContext
Inheritance
ReactionContext
Inherited Members

Constructors

ReactionContext(MessageContext, Reaction)

Everything about a reaction that triggered an OnReactionAttribute method.

public ReactionContext(MessageContext message, Reaction reaction)

Parameters

message MessageContext

The message context of the reaction envelope.

reaction Reaction

The reaction.

Properties

Account

The receiving account.

public PhoneNumber Account { get; }

Property Value

PhoneNumber

CancellationToken

Cancelled when the host shuts down.

public CancellationToken CancellationToken { get; }

Property Value

CancellationToken

Conversation

The conversation of the reaction (group or direct chat).

public Recipient Conversation { get; }

Property Value

Recipient

Message

The pipeline context of the reaction envelope.

public MessageContext Message { get; }

Property Value

MessageContext

Reaction

The reaction: emoji, target author and timestamp, and whether it was removed.

public Reaction Reaction { get; }

Property Value

Reaction

Sender

Who reacted.

public Sender Sender { get; }

Property Value

Sender

Services

The message's scoped services.

public IServiceProvider Services { get; }

Property Value

IServiceProvider

Methods

ReplyAsync(string)

Sends a text into the conversation of the reaction.

public Task<SendResult> ReplyAsync(string text)

Parameters

text string

The text.

Returns

Task<SendResult>

The send result.