DestinyCharacterActivitiesComponent class
This component holds activity data for a character. It will tell you about the character's current activity status, as well as activities that are available to the user.
- Annotations
-
- @JsonSerializable()
Constructors
- DestinyCharacterActivitiesComponent()
-
DestinyCharacterActivitiesComponent.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
availableActivities
↔ List<
DestinyActivity> ? -
The list of activities that the user can play.
getter/setter pair
- currentActivityHash ↔ int?
-
If the user is in an activity, this will be the hash of the Activity being played. Note that you must combine this info with currentActivityModeHash to get a real picture of what the user is doing right now. For instance, PVP "Activities" are just maps: it's the ActivityMode that determines what type of PVP game they're playing.
getter/setter pair
- currentActivityModeHash ↔ int?
-
If the user is in an activity, this will be the hash of the activity mode being played. Combine with currentActivityHash to give a person a full picture of what they're doing right now.
getter/setter pair
-
currentActivityModeHashes
↔ List<
int> ? -
If the user is in an activity, this will be the hashes of the DestinyActivityModeDefinition being played. Combine with currentActivityHash to give a person a full picture of what they're doing right now.
getter/setter pair
- currentActivityModeType ↔ int?
-
And the current activity's most specific mode type, if it can be found.
getter/setter pair
-
currentActivityModeTypes
↔ List<
DestinyActivityModeType> ? -
All Activity Modes that apply to the current activity being played, in enum form.
getter/setter pair
- currentPlaylistActivityHash ↔ int?
-
If the user is in a playlist, this is the hash identifier for the playlist that they chose.
getter/setter pair
- dateActivityStarted ↔ String?
-
The last date that the user started playing an activity.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastCompletedStoryHash ↔ int?
-
This will have the activity hash of the last completed story/campaign mission, in case you care about that.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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<DestinyCharacterActivitiesComponent>