Table of Contents

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

account PhoneNumber

The account sending the receipt.

recipient Recipient

The author of the acknowledged message.

timestamp long

Timestamp of the acknowledged message.

type ReceiptType

Read or Viewed.

cancellationToken CancellationToken

Cancels the request.

Returns

Task

A task that completes when the receipt was sent.

Exceptions

ArgumentException

type is Delivery (sent automatically by Signal).