UserInfoCard class
This contract supplies basic information commonly used to display a minimal amount of information about a user. Take care to not add more properties here unless the property applies in all (or at least the majority) of the situations where UserInfoCard is used. Avoid adding game specific or platform specific details here. In cases where UserInfoCard is a subset of the data needed in a contract, use UserInfoCard as a property of other contracts.
- Annotations
-
- @JsonSerializable()
Constructors
- UserInfoCard()
-
UserInfoCard.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
applicableMembershipTypes
↔ List<
BungieMembershipType> ? -
The list of Membership Types indicating the platforms on which this Membership can be used.
Not in Cross Save = its original membership type. Cross Save Primary = Any membership types it is overridding, and its original membership type Cross Save Overridden = Empty list
getter/setter pair
- bungieGlobalDisplayName ↔ String?
-
The bungie global display name, if set.
getter/setter pair
- bungieGlobalDisplayNameCode ↔ int?
-
The bungie global display name code, if set.
getter/setter pair
- crossSaveOverride ↔ BungieMembershipType?
-
If there is a cross save override in effect, this value will tell you the type that is overridding this one.
getter/setter pair
- displayName ↔ String?
-
Display Name the player has chosen for themselves. The display name is optional when the data type is used as input to a platform API.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconPath ↔ String?
-
URL the Icon if available.
getter/setter pair
- isPublic ↔ bool?
-
If True, this is a public user membership.
getter/setter pair
- membershipId ↔ String?
-
Membership ID as they user is known in the Accounts service
getter/setter pair
- membershipType ↔ BungieMembershipType?
-
Type of the membership. Not necessarily the native type.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supplementalDisplayName ↔ String?
-
A platform specific additional display name - ex: psn Real Name, bnet Unique Name, etc.
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<UserInfoCard>