Table of Contents

Interface IReactionService

Namespace
Signal.Application.Abstractions
Assembly
Signal.Application.dll

Sends and removes emoji reactions.

public interface IReactionService

Methods

RemoveReactionAsync(PhoneNumber, Recipient, string, string, long, CancellationToken)

Removes a reaction (DELETE /v1/reactions/{number}).

Task RemoveReactionAsync(PhoneNumber account, Recipient recipient, string emoji, string targetAuthor, long targetTimestamp, CancellationToken cancellationToken = default)

Parameters

account PhoneNumber

The reacting account.

recipient Recipient

The conversation of the target message.

emoji string

The reaction emoji to remove.

targetAuthor string

Phone number or UUID of the author of the target message.

targetTimestamp long

Timestamp of the target message.

cancellationToken CancellationToken

Cancels the request.

Returns

Task

A task that completes when the removal was sent.

SendReactionAsync(PhoneNumber, Recipient, string, string, long, CancellationToken)

Reacts to a message (POST /v1/reactions/{number}).

Task SendReactionAsync(PhoneNumber account, Recipient recipient, string emoji, string targetAuthor, long targetTimestamp, CancellationToken cancellationToken = default)

Parameters

account PhoneNumber

The reacting account.

recipient Recipient

The conversation of the target message (the group, or the author for direct messages).

emoji string

The reaction emoji.

targetAuthor string

Phone number or UUID of the author of the target message.

targetTimestamp long

Timestamp of the target message.

cancellationToken CancellationToken

Cancels the request.

Returns

Task

A task that completes when the reaction was sent.