UserShip class
用户关系
Constructors
- UserShip({ObjectId? id, ObjectId? bsid, int? time, DbJsonWraper? extra, ObjectId? uid, ObjectId? sid, ObjectId? rid, ObjectId? fid, int? from, int? state, String? apply, String? alias, bool? dialog, bool? notice, bool? top, int? unread, String? recent, int? update, int? active})
-
UserShip.fromJson(Map<
String, dynamic> map) -
factory
- UserShip.fromString(String data)
-
factory
Properties
- active ↔ int
-
对话激活时间
getter/setter pair
- alias ↔ String
-
好友备注名 或 群昵称
getter/setter pair
- apply ↔ String
-
申请描述
getter/setter pair
- bsid → ObjectId
-
商户id
no setter
- dialog ↔ bool
-
是否处于对话状态
getter/setter pair
-
displayHead
↔ List<
String> -
展示的头像
getter/setter pair
- displayIcon ↔ String
-
展示的图标
getter/setter pair
- displayNick ↔ String
-
展示的名称
getter/setter pair
- displayPinyin ↔ String
-
展示的名称对应的拼音
getter/setter pair
- extra → DbJsonWraper
-
自定义数据
no setter
- fid ↔ ObjectId
-
关系来源id(用户id或群组id)
getter/setter pair
- from ↔ int
-
关系来源
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → ObjectId
-
唯一id
no setter
- msgasync ↔ int
-
消息加载序号
getter/setter pair
-
msgcache
↔ List<
Message> -
消息缓存列表
getter/setter pair
- notice ↔ bool
-
消息是否显示通知
getter/setter pair
- recent ↔ String
-
最近消息缩写
getter/setter pair
- rid ↔ ObjectId
-
关联目标id(用户id或群组id)
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sid ↔ ObjectId
-
会话id
getter/setter pair
- state ↔ int
-
关系状态
getter/setter pair
- time → int
-
创建时间
no setter
- top ↔ bool
-
是否置顶聊天
getter/setter pair
- uid ↔ ObjectId
-
用户id
getter/setter pair
- unread ↔ int
-
未读消息数量
getter/setter pair
- update ↔ int
-
最近消息时间
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - 转换为基本数据类型的Map。转换结果可以直接使用jsonEncode进行序列化,可以直接保存到mongo数据库
-
toKValues(
) → Map< String, dynamic> - 转换为用字符串key读取字段值的Map
-
toString(
) → String - jsonEncode(this)抛出的异常被吃掉了,所以需要写成jsonEncode(toJson())
-
updateByJson(
Map< String, dynamic> map, {UserShip? parser}) → void -
通过基本数据类型的Map来更新字段。来源
map
可以直接使用jsonEncode进行序列化,可以直接保存到mongo数据库 -
updateByKValues(
Map< String, dynamic> map) → void - 通过用字符串key读取字段值的Map来更新字段
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited