Struct CharacterMailData
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
idlongversionlongcharacterIDlongsenderIDlongsenderNamestringsubjectstringbodystringtimeSentDateTimereadboolcurrencyAttachmentintitemAttachmentTemplateIDintitemAttachmentSeedintitemAttachmentAmountint
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
idlongcharacterIDlongsenderIDlongsenderNamestringsubjectstringbodystringtimeSentDateTimereadboolcurrencyAttachmentintitemAttachmentTemplateIDintitemAttachmentSeedintitemAttachmentAmountint
Fields
Body
Mail body text.
public readonly string Body
Field Value
CharacterID
Recipient character ID.
public readonly long CharacterID
Field Value
CurrencyAttachment
Attached currency amount.
public readonly int CurrencyAttachment
Field Value
ID
Primary key.
public readonly long ID
Field Value
ItemAttachmentAmount
Attached item stack amount.
public readonly int ItemAttachmentAmount
Field Value
ItemAttachmentSeed
Attached item randomization seed.
public readonly int ItemAttachmentSeed
Field Value
ItemAttachmentTemplateID
Attached item template ID.
public readonly int ItemAttachmentTemplateID
Field Value
Read
Whether the mail has been read.
public readonly bool Read
Field Value
SenderID
Sending character ID.
public readonly long SenderID
Field Value
SenderName
Display name of the sender.
public readonly string SenderName
Field Value
Subject
Mail subject line.
public readonly string Subject
Field Value
TimeSent
Timestamp when mail was sent.
public readonly DateTime TimeSent
Field Value
Version
Optimistic concurrency version.
public readonly long Version
Field Value
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
newVersionlongThe new version value.
Returns
- CharacterMailData
A new instance with the updated version.