ezet / evelib

Eve Online Library.NET is an open source C# wrapper for CCPs Eve Online API and other popular Eve Online APIs.
Apache License 2.0
71 stars 36 forks source link

EveStaticData: GroupId of invType is 0 #39

Closed Bounz closed 9 years ago

Bounz commented 9 years ago

Hi! I need to get GroupId of bluebprunt, so I'm using the following code:

var estd = new EveStaticData();
var invType = estd.GetInvType(bp.TypeId);

But after request is finished invType.GroupId is 0, but invType.Group has a valid URL to element-43.com API endpoint.

ezet commented 9 years ago

Yeah, the EveStaticData is incomplete and hasn't been looked at in a long time. The source doesn't return the group ID as xml, so you'll have to extract the ID from the end of the group URI. This is what I had in mind when creating it, but I've since stopped the development of it. You can easily do it yourself though.