Struct CharacterMailAttachmentData
The attachment taken off one mail by a successful claim.
public struct CharacterMailAttachmentData
- Inherited Members
Remarks
Returned by ICharacterMailService.ClaimAttachmentAsync, which reads and clears the
attachment columns in a single statement. These are the values as they stood before
the clear — the whole point of the call, since after it the row holds zeroes.
A claim that finds nothing to take returns no data at all rather than a zeroed instance, so "there was an attachment worth nothing" and "there was no attachment" cannot be confused.
Constructors
CharacterMailAttachmentData(int, int, uint, int)
Initializes a claimed attachment.
public CharacterMailAttachmentData(int itemTemplateID, int itemSeed, uint itemAmount, int currencyAmount)
Parameters
itemTemplateIDintTemplate ID of the attached item.
itemSeedintGeneration seed of the attached item.
itemAmountuintStack size of the attached item.
currencyAmountintCurrency attached to the mail.
Fields
CurrencyAmount
Currency attached to the mail.
public readonly int CurrencyAmount
Field Value
ItemAmount
Stack size of the attached item.
public readonly uint ItemAmount
Field Value
ItemSeed
Generation seed of the attached item.
public readonly int ItemSeed
Field Value
ItemTemplateID
Template ID of the attached item, or 0 when only currency was attached.
public readonly int ItemTemplateID
Field Value
Properties
HasAnything
True when this attachment carries an item or any currency.
public bool HasAnything { get; }