/
model_destiny_destiny_item_quantity.go
22 lines (21 loc) · 1.4 KB
/
model_destiny_destiny_item_quantity.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
* Bungie.Net API
*
* These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
*
* API version: 2.18.0
* Contact: support@bungie.com
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package D2Client
// Used in a number of Destiny contracts to return data about an item stack and its quantity. Can optionally return an itemInstanceId if the item is instanced - in which case, the quantity returned will be 1. If it's not... uh, let me know okay? Thanks.
type DestinyDestinyItemQuantity struct {
// The hash identifier for the item in question. Use it to look up the item's DestinyInventoryItemDefinition.
ItemHash int32 `json:"itemHash,omitempty"`
// If this quantity is referring to a specific instance of an item, this will have the item's instance ID. Normally, this will be null.
ItemInstanceId int64 `json:"itemInstanceId,omitempty"`
// The amount of the item needed/available depending on the context of where DestinyItemQuantity is being used.
Quantity int32 `json:"quantity,omitempty"`
// Indicates that this item quantity may be conditionally shown or hidden, based on various sources of state. For example: server flags, account state, or character progress.
HasConditionalVisibility bool `json:"hasConditionalVisibility,omitempty"`
}