JavaScript is required to use Bungie.net

Group Avatar

BungieNetPlatform

"Updates, discussions, and documentation of the BungieNetPlatform API."

Запрос на вступление
  • Основные цели

    Updates, discussions, and documentation of the BungieNetPlatform API.

  • Участие

    3262 Участники
    Общее количество пользователей, вступивших в эту группу
    11 Стаж группы
    Срок активности этой группы (в годах)
  • Администраторы

  • Отмечено

впервые опубликовано в:BungieNetPlatform
1/16/2017 10:27:11 AM
1

Determine if item is equipped

Reading through the official API docs I can see that the following is deprecated /{membershipType}/Account/{destinyMembershipId}/Character/{characterId}/Inventory/ This could be used to list items held by a character and would return an "isEquipped" flag as part of an items json. The new uri to call is /{membershipType}/Account/{destinyMembershipId}/Character/{characterId}/Inventory/Summary/ however this returns a much smaller set of data {"itemHash":2224632548,"itemId":"6917529086837846649","quantity":1,"damageType":0,"damageTypeHash":0,"isGridComplete":false,"transferStatus":2,"state":0,"characterIndex":0,"bucketHash":1801258597} My question is how using only this new uri do I determine if an item is equipped? One pattern I have spotted is that transferStatus is often 1 when an item is equipped, but I have also seen other values of 2 and 3.. Any idea what these other values mean?

Публикуется на языке:

 

Играйте достойно. Потратьте минутку на ознакомление с нашими правилами, прежде чем отправлять вашу запись. Отмена Изменить Создать боевую группу Опубликовать

У вас нет прав для просмотра этих материалов.
;
preload icon
preload icon
preload icon