Table of Contents

Class ScheduledMessage

Namespace
Signal.Application.Scheduling
Assembly
Signal.Application.dll

A text message to send later, optionally repeating (reminders, digests). Only plain values, so any IScheduledMessageStore can persist it.

public sealed record ScheduledMessage : IEquatable<ScheduledMessage>
Inheritance
ScheduledMessage
Implements
Inherited Members

Constructors

ScheduledMessage(Guid, PhoneNumber, Recipient, string, DateTimeOffset)

A text message to send later, optionally repeating (reminders, digests). Only plain values, so any IScheduledMessageStore can persist it.

public ScheduledMessage(Guid Id, PhoneNumber Account, Recipient Recipient, string Text, DateTimeOffset DueAt)

Parameters

Id Guid

Identifies the message, e.g. to cancel it.

Account PhoneNumber

The sending account.

Recipient Recipient

Who receives it (phone number, UUID, username or group).

Text string

The message text.

DueAt DateTimeOffset

When to send it next.

Properties

Account

The sending account.

public PhoneNumber Account { get; init; }

Property Value

PhoneNumber

DueAt

When to send it next.

public DateTimeOffset DueAt { get; init; }

Property Value

DateTimeOffset

Id

Identifies the message, e.g. to cancel it.

public Guid Id { get; init; }

Property Value

Guid

Recipient

Who receives it (phone number, UUID, username or group).

public Recipient Recipient { get; init; }

Property Value

Recipient

RepeatEvery

Repeat interval for recurring messages (at least one minute); null to send once.

public TimeSpan? RepeatEvery { get; init; }

Property Value

TimeSpan?

Text

The message text.

public string Text { get; init; }

Property Value

string

TextMode

How Text is interpreted.

public TextMode TextMode { get; init; }

Property Value

TextMode