CurrentUser class

Annotations
  • @JsonSerializable(checked: true, createToJson: true, disallowUnrecognizedKeys: false, explicitToJson: true)

Constructors

CurrentUser({required int acceptedTOSVersion, int? acceptedPrivacyVersion, DateTime? accountDeletionDate, List<AccountDeletionLog>? accountDeletionLog, List<String>? activeFriends, required bool allowAvatarCopying, required String bio, required List<String> bioLinks, required String currentAvatar, required String currentAvatarAssetUrl, required String currentAvatarImageUrl, required String currentAvatarThumbnailImageUrl, List<String>? currentAvatarTags, required DateTime dateJoined, required DeveloperType developerType, required String displayName, required bool emailVerified, String? fallbackAvatar, required List<String> friendGroupNames, required String friendKey, required List<String> friends, required bool hasBirthday, bool? hideContentFilterSettings, String? userLanguage, String? userLanguageCode, required bool hasEmail, required bool hasLoggedInFromClient, required bool hasPendingEmail, required String homeLocation, required String id, bool isFriend = false, DateTime? lastActivity, required DateTime lastLogin, required String lastPlatform, required String obfuscatedEmail, required String obfuscatedPendingEmail, required String oculusId, String? googleId, String? picoId, String? viveId, List<String>? offlineFriends, List<String>? onlineFriends, required List<PastDisplayName> pastDisplayNames, CurrentUserPresence? presence, required String profilePicOverride, required UserState state, required UserStatus status, required String statusDescription, required bool statusFirstTime, required List<String> statusHistory, required Object steamDetails, required String steamId, required List<String> tags, required bool twoFactorAuthEnabled, DateTime? twoFactorAuthEnabledDate, required bool unsubscribe, DateTime? updatedAt, required String userIcon, String? username})
Returns a new CurrentUser instance.
CurrentUser.fromJson(Map<String, dynamic> json)
factory

Properties

acceptedPrivacyVersion int?
final
acceptedTOSVersion int
final
accountDeletionDate DateTime?
final
accountDeletionLog List<AccountDeletionLog>?
final
activeFriends List<String>?
final
allowAvatarCopying bool
final
bio String
final
final
currentAvatar String
final
currentAvatarAssetUrl String
final
currentAvatarImageUrl String
When profilePicOverride is not empty, use it instead.
final
currentAvatarTags List<String>?
final
currentAvatarThumbnailImageUrl String
When profilePicOverride is not empty, use it instead.
final
dateJoined DateTime
final
developerType DeveloperType
final
displayName String
final
emailVerified bool
final
fallbackAvatar String?
final
friendGroupNames List<String>
Always empty array.
final
friendKey String
final
friends List<String>
final
googleId String?
final
hasBirthday bool
final
hasEmail bool
final
hashCode int
The hash code for this object.
no setteroverride
hasLoggedInFromClient bool
final
hasPendingEmail bool
final
hideContentFilterSettings bool?
final
homeLocation String
WorldID be "offline" on User profiles if you are not friends with that user.
final
id String
A users unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. Legacy players can have old IDs in the form of 8JoV9XEdpo. The ID can never be changed.
final
isFriend bool
final
lastActivity DateTime?
final
lastLogin DateTime
final
lastPlatform String
This can be standalonewindows or android, but can also pretty much be any random Unity verison such as 2019.2.4-801-Release or 2019.2.2-772-Release or even unknownplatform.
final
obfuscatedEmail String
final
obfuscatedPendingEmail String
final
oculusId String
final
offlineFriends List<String>?
final
onlineFriends List<String>?
final
pastDisplayNames List<PastDisplayName>
final
picoId String?
final
presence CurrentUserPresence?
final
profilePicOverride String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state UserState
final
status UserStatus
final
statusDescription String
final
statusFirstTime bool
final
statusHistory List<String>
final
steamDetails Object
final
steamId String
final
tags List<String>
final
twoFactorAuthEnabled bool
final
twoFactorAuthEnabledDate DateTime?
final
unsubscribe bool
final
updatedAt DateTime?
final
userIcon String
final
userLanguage String?
final
userLanguageCode String?
final
username String?
-| DEPRECATED: VRChat API no longer return usernames of other users. See issue by Tupper for more information.
final
viveId String?
final

Methods

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.
override

Operators

operator ==(Object other) bool
The equality operator.
override