DestinyPublicVendorSaleItemComponent class
Has character-agnostic information about an item being sold by a vendor. Note that if you want instance, stats, etc... data for the item, you'll have to request additional components such as ItemInstances, ItemPerks etc... and acquire them from the DestinyVendorResponse's "items" property. For most of these, however, you'll have to ask for it in context of a specific character.
- Annotations
-
- @JsonSerializable()
Constructors
- DestinyPublicVendorSaleItemComponent()
-
DestinyPublicVendorSaleItemComponent.fromJson(Map<
String, dynamic> json) -
factory
Properties
- apiPurchasable ↔ bool?
-
If true, this item can be purchased through the Bungie.net API.
getter/setter pair
-
costs
↔ List<
DestinyItemQuantity> ? -
A summary of the current costs of the item.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- itemHash ↔ int?
-
The hash of the item being sold, as a quick shortcut for looking up the DestinyInventoryItemDefinition of the sale item.
getter/setter pair
- overrideNextRefreshDate ↔ String?
-
If this item has its own custom date where it may be removed from the Vendor's rotation, this is that date.
Note that there's not actually any guarantee that it will go away: it could be chosen again and end up still being in the Vendor's sale items! But this is the next date where that test will occur, and is also the date that the game shows for availability on things like Bounties being sold. So it's the best we can give.
getter/setter pair
- overrideStyleItemHash ↔ int?
-
If populated, this is the hash of the item whose icon (and other secondary styles, but not the human readable strings) should override whatever icons/styles are on the item being sold.
If you don't do this, certain items whose styles are being overridden by socketed items - such as the "Recycle Shader" item - would show whatever their default icon/style is, and it wouldn't be pretty or look accurate.
getter/setter pair
- quantity ↔ int?
-
How much of the item you'll be getting.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- vendorItemIndex ↔ int?
-
The index into the DestinyVendorDefinition.itemList property. Note that this means Vendor data is Content Version dependent: make sure you have the latest content before you use Vendor data, or these indexes may mismatch.
Most systems avoid this problem, but Vendors is one area where we are unable to reasonably avoid content dependency at the moment.
getter/setter pair
Methods
-
asyncToJson(
) → Future< Map< String, dynamic> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
asyncFromJson(
Map< String, dynamic> json) → Future<DestinyPublicVendorSaleItemComponent>