DestinyVendorComponent class

This component contains essential/summary information about the vendor.

Annotations
  • @JsonSerializable()

Constructors

DestinyVendorComponent()
DestinyVendorComponent.fromJson(Map<String, dynamic> json)
factory

Properties

canPurchase bool?
If True, you can purchase from the Vendor.
getter/setter pair
enabled bool?
If True, the Vendor is currently accessible. If False, they may not actually be visible in the world at the moment.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
nextRefreshDate String?
The date when this vendor's inventory will next rotate/refresh. Note that this is distinct from the date ranges that the vendor is visible/available in-game: this field indicates the specific time when the vendor's available items refresh and rotate, regardless of whether the vendor is actually available at that time. Unfortunately, these two values may be (and are, for the case of important vendors like Xur) different. Issue https://github.com/Bungie-net/api/issues/353 is tracking a fix to start providing visibility date ranges where possible in addition to this refresh date, so that all important dates for vendors are available for use.
getter/setter pair
progression DestinyProgression?
If the Vendor has a related Reputation, this is the Progression data that represents the character's Reputation level with this Vendor.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seasonalRank int?
If this vendor has a seasonal rank, this will be the calculated value of that rank. How nice is that? I mean, that's pretty sweeet. It's a whole 32 bit integer.
getter/setter pair
vendorHash int?
The unique identifier for the vendor. Use it to look up their DestinyVendorDefinition.
getter/setter pair
vendorLocationIndex int?
An index into the vendor definition's "locations" property array, indicating which location they are at currently. If -1, then the vendor has no known location (and you may choose not to show them in your UI as a result. I mean, it's your bag honey)
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<DestinyVendorComponent>