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
accountPhoneNumberThe reacting account.
recipientRecipientThe conversation of the target message.
emojistringThe reaction emoji to remove.
targetAuthorstringPhone number or UUID of the author of the target message.
targetTimestamplongTimestamp of the target message.
cancellationTokenCancellationTokenCancels 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
accountPhoneNumberThe reacting account.
recipientRecipientThe conversation of the target message (the group, or the author for direct messages).
emojistringThe reaction emoji.
targetAuthorstringPhone number or UUID of the author of the target message.
targetTimestamplongTimestamp of the target message.
cancellationTokenCancellationTokenCancels the request.
Returns
- Task
A task that completes when the reaction was sent.