NIMFriend class

好友信息

Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

NIMFriend({required String accountId, String? alias, String? serverExtension, String? customerExtension, required int createTime, int? updateTime, NIMUserInfo? userProfile})
NIMFriend.fromJson(Map<String, dynamic> map)
factory

Properties

accountId String
好友账号ID
getter/setter pair
alias String?
好友备注 长度限制:128字符
getter/setter pair
createTime int
好友信息创建时间
getter/setter pair
customerExtension String?
用户扩展字段,建议使用json格式,仅OpenApi设置 长度限制:256字符
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverExtension String?
用户扩展字段,建议使用json格式,可客户端,OpenApi设置 长度限制:256字符
getter/setter pair
updateTime int?
好友信息更新时间
getter/setter pair
userProfile NIMUserInfo?
获取好友对应的用户信息
getter/setter pair

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

Operators

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