DestinyProfileComponent class

The most essential summary information about a Profile (in Destiny 1, we called these "Accounts").

Annotations
  • @JsonSerializable()

Constructors

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

Properties

activeEventCardHash int?
If populated, this is a reference to the event card that is currently active.
getter/setter pair
characterIds List<String>?
A list of the character IDs, for further querying on your part.
getter/setter pair
currentSeasonHash int?
If populated, this is a reference to the season that is currently active.
getter/setter pair
currentSeasonRewardPowerCap int?
If populated, this is the reward power cap for the current season.
getter/setter pair
dateLastPlayed String?
The last time the user played with any character on this Profile.
getter/setter pair
eventCardHashesOwned List<int>?
A list of hashes for event cards that a profile owns. Unlike most values in versionsOwned, these stay with the profile across all platforms.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seasonHashes List<int>?
A list of seasons that this profile owns. Unlike versionsOwned, these stay with the profile across Platforms, and thus will be valid. It turns out that Stadia Pro subscriptions will give access to seasons but only while playing on Stadia and with an active subscription. So some users (users who have Stadia Pro but choose to play on some other platform) won't see these as available: it will be whatever seasons are available for the platform on which they last played.
getter/setter pair
userInfo UserInfoCard?
If you need to render the Profile (their platform name, icon, etc...) somewhere, this property contains that information.
getter/setter pair
versionsOwned DestinyGameVersions?
If you want to know what expansions they own, this will contain that data. IMPORTANT: This field may not return the data you're interested in for Cross-Saved users. It returns the last ownership data we saw for this account - which is to say, what they've purchased on the platform on which they last played, which now could be a different platform. If you don't care about per-platform ownership and only care about whatever platform it seems they are playing on most recently, then this should be "good enough." Otherwise, this should be considered deprecated. We do not have a good alternative to provide at this time with platform specific ownership data for DLC.
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<DestinyProfileComponent>