Interface IReceiptService
- Namespace
- Signal.Application.Abstractions
- Assembly
- Signal.Application.dll
Sends read and viewed receipts.
public interface IReceiptService
Methods
SendReceiptAsync(PhoneNumber, Recipient, long, ReceiptType, CancellationToken)
Sends a receipt (POST /v1/receipts/{number}).
Task SendReceiptAsync(PhoneNumber account, Recipient recipient, long timestamp, ReceiptType type = ReceiptType.Read, CancellationToken cancellationToken = default)
Parameters
accountPhoneNumberThe account sending the receipt.
recipientRecipientThe author of the acknowledged message.
timestamplongTimestamp of the acknowledged message.
typeReceiptTypecancellationTokenCancellationTokenCancels the request.
Returns
- Task
A task that completes when the receipt was sent.
Exceptions
- ArgumentException
typeis Delivery (sent automatically by Signal).