UserInfo class

用户信息

Constructors

UserInfo({String oId = '', String userNo = '', String userName = '', String nickname = '', String userURL = '', String city = '', String intro = '', bool isOnline = false, int point = 0, String role = '', UserAppRole appRole = UserAppRole.Hack, String avatarURL = '', String cardBg = '', int followingCnt = 0, int followerCnt = 0, int onlineMinute = 0, String canFollow = 'hide', MetalList allMetals = const [], MetalList sysMetal = const []})
UserInfo.from(Map data)

Properties

allMetals MetalList
用户所有勋章列表,包含未佩戴
getter/setter pair
allName String
no setter
appRole UserAppRole
角色
getter/setter pair
avatarURL String
用户头像地址
getter/setter pair
canFollow String
是否已经关注,未登录则为 hide
getter/setter pair
cardBg String
用户卡片背景
getter/setter pair
city String
所在城市
getter/setter pair
followerCnt int
用户被关注数
getter/setter pair
followingCnt int
用户关注数
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
intro String
签名
getter/setter pair
isOnline bool
是否在线
getter/setter pair
name String
no setter
nickname String
昵称
getter/setter pair
oId String
用户 id
getter/setter pair
onlineMinute int
在线时长,单位分钟
getter/setter pair
point int
用户积分
getter/setter pair
role String
用户组
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sysMetal MetalList
用户勋章列表
getter/setter pair
userName String
用户名
getter/setter pair
userNo String
用户编号
getter/setter pair
userURL String
首页地址
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → dynamic
toString() String
A string representation of this object.
override

Operators

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