Table of Contents

Struct SmsQueueData

Namespace
FishMMO.Database.Data
Assembly
FishMMO-DB.dll

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

id long
recipientPhone string
recipientUsername string
body string
createdAt DateTime
attempts int
claimedBy string
claimedAt DateTime?
kind SmsKind

Fields

Attempts

Delivery attempts so far.

public readonly int Attempts

Field Value

int

Body

Message text.

public readonly string Body

Field Value

string

ClaimedAt

When it was claimed.

public readonly DateTime? ClaimedAt

Field Value

DateTime?

ClaimedBy

The server that claimed it for delivery.

public readonly string? ClaimedBy

Field Value

string

CreatedAt

When it was enqueued.

public readonly DateTime CreatedAt

Field Value

DateTime

ID

Primary key.

public readonly long ID

Field Value

long

Kind

What the message is for.

public readonly SmsKind Kind

Field Value

SmsKind

RecipientPhone

Recipient number in E.164 form.

public readonly string RecipientPhone

Field Value

string

RecipientUsername

Associated account username.

public readonly string RecipientUsername

Field Value

string