Table of Contents

Struct CharacterMailData

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

Character mail data transfer object.

public struct CharacterMailData : IVersioned<CharacterMailData>
Implements
Inherited Members
Extension Methods

Constructors

CharacterMailData(long, long, long, long, string, string, string, DateTime, bool, int, int, int, int)

public CharacterMailData(long id, long version, long characterID, long senderID, string senderName, string subject, string body, DateTime timeSent, bool read, int currencyAttachment, int itemAttachmentTemplateID, int itemAttachmentSeed, int itemAttachmentAmount)

Parameters

id long
version long
characterID long
senderID long
senderName string
subject string
body string
timeSent DateTime
read bool
currencyAttachment int
itemAttachmentTemplateID int
itemAttachmentSeed int
itemAttachmentAmount int

CharacterMailData(long, long, long, string, string, string, DateTime, bool, int, int, int, int)

public CharacterMailData(long id, long characterID, long senderID, string senderName, string subject, string body, DateTime timeSent, bool read, int currencyAttachment, int itemAttachmentTemplateID, int itemAttachmentSeed, int itemAttachmentAmount)

Parameters

id long
characterID long
senderID long
senderName string
subject string
body string
timeSent DateTime
read bool
currencyAttachment int
itemAttachmentTemplateID int
itemAttachmentSeed int
itemAttachmentAmount int

Fields

Body

Mail body text.

public readonly string Body

Field Value

string

CharacterID

Recipient character ID.

public readonly long CharacterID

Field Value

long

CurrencyAttachment

Attached currency amount.

public readonly int CurrencyAttachment

Field Value

int

ID

Primary key.

public readonly long ID

Field Value

long

ItemAttachmentAmount

Attached item stack amount.

public readonly int ItemAttachmentAmount

Field Value

int

ItemAttachmentSeed

Attached item randomization seed.

public readonly int ItemAttachmentSeed

Field Value

int

ItemAttachmentTemplateID

Attached item template ID.

public readonly int ItemAttachmentTemplateID

Field Value

int

Read

Whether the mail has been read.

public readonly bool Read

Field Value

bool

SenderID

Sending character ID.

public readonly long SenderID

Field Value

long

SenderName

Display name of the sender.

public readonly string SenderName

Field Value

string

Subject

Mail subject line.

public readonly string Subject

Field Value

string

TimeSent

Timestamp when mail was sent.

public readonly DateTime TimeSent

Field Value

DateTime

Version

Optimistic concurrency version.

public readonly long Version

Field Value

long

Methods

WithVersion(long)

Returns a new instance of this DTO with the specified version. Used by extension methods to create incremented copies.

public CharacterMailData WithVersion(long newVersion)

Parameters

newVersion long

The new version value.

Returns

CharacterMailData

A new instance with the updated version.