Guest User

EveAI

a guest
Dec 9th, 2011
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1. List<MarketOrder> listeOrders = api.GetCorporationMarketOrders();
  2.  
  3. And when you have the MarketOrder object (named order for example) : order.CharacterID
  4.  
  5. Then you can use CharacterNameLookupApi to get the name of the pilot (you need to give a List<long> to the Api) :
  6. List<long> charactersIDs = new List<long>();
  7. charactersIDs.Add(order.CharacterID);
  8. CharacterNameLookupApi nameLookupApi = new CharacterNameLookupApi();
  9. nameLookupApi.CharacterIDsToLookup = charactersID;
  10. nameLookupApi.UpdateData();
  11.  
  12. string characterName = "";
  13. nameLookupApi.DataDictionary.TryGetValue(order.CharacterID, out characterName);
  14.  
Advertisement
Add Comment
Please, Sign In to add comment