Struct SmsQueueData
Data transfer object for a pending text message in the outbound SMS queue.
public readonly struct SmsQueueData
- Inherited Members
Constructors
SmsQueueData(long, string, string, string, DateTime, int, string?, DateTime?, SmsKind)
Creates a queue row DTO.
public SmsQueueData(long id, string recipientPhone, string recipientUsername, string body, DateTime createdAt, int attempts, string? claimedBy, DateTime? claimedAt, SmsKind kind = SmsKind.Verification)
Parameters
idlongrecipientPhonestringrecipientUsernamestringbodystringcreatedAtDateTimeattemptsintclaimedBystringclaimedAtDateTime?kindSmsKind
Fields
Attempts
Delivery attempts so far.
public readonly int Attempts
Field Value
Body
Message text.
public readonly string Body
Field Value
ClaimedAt
When it was claimed.
public readonly DateTime? ClaimedAt
Field Value
ClaimedBy
The server that claimed it for delivery.
public readonly string? ClaimedBy
Field Value
CreatedAt
When it was enqueued.
public readonly DateTime CreatedAt
Field Value
ID
Primary key.
public readonly long ID
Field Value
Kind
What the message is for.
public readonly SmsKind Kind
Field Value
RecipientPhone
Recipient number in E.164 form.
public readonly string RecipientPhone
Field Value
RecipientUsername
Associated account username.
public readonly string RecipientUsername