These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

NotificationText and (most likely dead) item ID's.

Author
ItsmeHcK1
Immortalis Inc.
Shadow Cartel
#1 - 2012-11-14 15:26:26 UTC
In my never-ending quest for glory, I decided to tackle the Notifications API.
Now I've run into the next problem; insurance and the ID's supplied with that.
For instance, here's one of mine:
Quote:
13-11-2012 0:08:00 (35) Ship destroyed, insurance payed
amount: 14609088.0
itemID: 1003045538700
payout: 1

Now I obviously understand the amount and the payout, but how do I ever found out what the itemID points to?
As far as I can reason, the ID in question is already dead and therefore does not exist anymore. (Not to mention there's no query for a single item ID.)
Any ideas?
Desmont McCallock
#2 - 2012-11-14 21:33:57 UTC
You can associate it with your AssetList.
ItsmeHcK1
Immortalis Inc.
Shadow Cartel
#3 - 2012-11-14 22:54:18 UTC
Except the asset in question no longer exists. It is destroyed, after all.
Desmont McCallock
#4 - 2012-11-15 08:33:35 UTC
AFAIK Assets have a cache time of 6 hours. Till it expires the itemID is still valid.
Notifications AFAIK last for 15 minutes (if they get read).
ItsmeHcK1
Immortalis Inc.
Shadow Cartel
#5 - 2012-11-15 09:01:41 UTC
I'm afraid that's not the case.
Notifications can be read back through the API for 10 days.
TheSkeptic
Federal Navy Academy
Gallente Federation
#6 - 2012-11-15 09:33:05 UTC
Create a table, then when you read your assets lists insert into that table any ships and their ID that don't exist already.

When you're reading your assets, union that table.

Problem solved.

...

Desmont McCallock
#7 - 2012-11-15 12:31:01 UTC
ItsmeHcK1 wrote:
I'm afraid that's not the case.
Notifications can be read back through the API for 10 days.

Then you are stuck. Only solution I too can see is to store the Assets for the period you scan the Notifications.
ZigZag Joe
Di-Tron Heavy Industries
OnlyFleets.
#8 - 2012-11-17 23:24:35 UTC
I personally gave up on the insurance notification myself; I just say You have been paid X ISK for the recent loss of your ship or some such. No sane solution to dealing with it, because damned if I'm going to cache assets in any way shape or form.

In retrospect, i should post what I have about the notification API, I've got somewhere around 70 notifications fully complete and a more that are mostly done - lacking data for uncommon cases.

Original API Jackknife/Auditor developer. http://ridetheclown.com/eveapi/audit.php