→Returns: two hours it took me to figure that out, two smegging hours. Anyone know a better way?
(2.3 change, different behaviour of hasItem) |
(→Returns: two hours it took me to figure that out, two smegging hours. Anyone know a better way?) |
||
| Line 15: | Line 15: | ||
:;CODAmount : Number - The amount of COD payment required to receive the package | :;CODAmount : Number - The amount of COD payment required to receive the package | ||
:;daysLeft : Number - The number of days (fractional) before the message expires | :;daysLeft : Number - The number of days (fractional) before the message expires | ||
:;hasItem : Number - Either the number of attachments or nil if no items are present | :;hasItem : Number - Either the number of attachments or nil if no items are present. Note that items that have been taken from the mailbox continue to occupy empty slots, but hasItem is the total number of items remaining in the mailbox. Use ATTACHMENTS_MAX_RECEIVE for the total number of attachments rather than this. | ||
:;wasRead : Flag - 1 if the mail has been read, nil otherwise. Using [[API GetInboxText|GetInboxText]]() marks an item as read. | :;wasRead : Flag - 1 if the mail has been read, nil otherwise. Using [[API GetInboxText|GetInboxText]]() marks an item as read. | ||
:;wasReturned : Flag - 1 if the mail was returned, nil otherwise | :;wasReturned : Flag - 1 if the mail was returned, nil otherwise | ||