DestinyCharacterComponent class

This component contains base properties of the character. You'll probably want to always request this component, but hey you do you.

Annotations
  • @JsonSerializable()

Properties

baseCharacterLevel int?
The "base" level of your character, not accounting for any light level.
getter/setter pair
characterId String?
The unique identifier for the character.
getter/setter pair
classHash int?
Use this hash to look up the character's DestinyClassDefinition.
getter/setter pair
classType DestinyClass?
Mostly for historical purposes at this point, this is an enumeration for the character's class. It'll be preferable in the general case to look up the related definition: but for some people this was too convenient to remove.
getter/setter pair
dateLastPlayed String?
The last date that the user played Destiny.
getter/setter pair
emblemBackgroundPath String?
A shortcut path to the user's currently equipped emblem background image. If you're just showing summary info for a user, this is more convenient than examining their equipped emblem and looking up the definition.
getter/setter pair
emblemColor DestinyColor?
A shortcut for getting the background color of the user's currently equipped emblem without having to do a DestinyInventoryItemDefinition lookup.
getter/setter pair
emblemHash int?
The hash of the currently equipped emblem for the user. Can be used to look up the DestinyInventoryItemDefinition.
getter/setter pair
emblemPath String?
A shortcut path to the user's currently equipped emblem image. If you're just showing summary info for a user, this is more convenient than examining their equipped emblem and looking up the definition.
getter/setter pair
genderHash int?
Use this hash to look up the character's DestinyGenderDefinition.
getter/setter pair
genderType DestinyGender?
Mostly for historical purposes at this point, this is an enumeration for the character's Gender. It'll be preferable in the general case to look up the related definition: but for some people this was too convenient to remove. And yeah, it's an enumeration and not a boolean. Fight me.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
levelProgression DestinyProgression?
The progression that indicates your character's level. Not their light level, but their character level: you know, the thing you max out a couple hours in and then ignore for the sake of light level.
getter/setter pair
light int?
The user's calculated "Light Level". Light level is an indicator of your power that mostly matters in the end game, once you've reached the maximum character level: it's a level that's dependent on the average Attack/Defense power of your items.
getter/setter pair
membershipId String?
Every Destiny Profile has a membershipId. This is provided on the character as well for convenience.
getter/setter pair
membershipType BungieMembershipType?
membershipType tells you the platform on which the character plays. Examine the BungieMembershipType enumeration for possible values.
getter/setter pair
minutesPlayedThisSession String?
If the user is currently playing, this is how long they've been playing.
getter/setter pair
minutesPlayedTotal String?
If this value is 525,600, then they played Destiny for a year. Or they're a very dedicated Rent fan. Note that this includes idle time, not just time spent actually in activities shooting things.
getter/setter pair
percentToNextLevel double?
A number between 0 and 100, indicating the whole and fractional % remaining to get to the next character level.
getter/setter pair
raceHash int?
Use this hash to look up the character's DestinyRaceDefinition.
getter/setter pair
raceType DestinyRace?
Mostly for historical purposes at this point, this is an enumeration for the character's race. It'll be preferable in the general case to look up the related definition: but for some people this was too convenient to remove.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stats Map<String, int>?
Your character's stats, such as Agility, Resilience, etc... not historical stats. You'll have to call a different endpoint for those.
getter/setter pair
titleRecordHash int?
If this Character has a title assigned to it, this is the identifier of the DestinyRecordDefinition that has that title information.
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<DestinyCharacterComponent>