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
IdGuidIdentifies the message, e.g. to cancel it.
AccountPhoneNumberThe sending account.
RecipientRecipientWho receives it (phone number, UUID, username or group).
TextstringThe message text.
DueAtDateTimeOffsetWhen to send it next.
Properties
Account
The sending account.
public PhoneNumber Account { get; init; }
Property Value
DueAt
When to send it next.
public DateTimeOffset DueAt { get; init; }
Property Value
Id
Identifies the message, e.g. to cancel it.
public Guid Id { get; init; }
Property Value
Recipient
Who receives it (phone number, UUID, username or group).
public Recipient Recipient { get; init; }
Property Value
RepeatEvery
Repeat interval for recurring messages (at least one minute); null to send once.
public TimeSpan? RepeatEvery { get; init; }
Property Value
Text
The message text.
public string Text { get; init; }
Property Value
TextMode
How Text is interpreted.
public TextMode TextMode { get; init; }