ChatPresence class

在线状态属性类,包含发布者的用户名、在线设备使用的平台、当前在线状态以及在线状态的扩展信息、更新时间和到期时间。

Constructors

ChatPresence(String publisher, String statusDescription, Map<String, int>? statusDetails, int lastTime, int expiryTime)
ChatPresence.fromJson(Map map)
factory

Properties

expiryTime → int
在线状态订阅到期 Unix 时间戳,单位为秒。
final
hashCode → int
The hash code for this object.
no setterinherited
lastTime → int
在线状态更新 Unix 时间戳,单位为秒。
final
publisher → String
在线状态发布者的用户 ID。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statusDescription → String
自定义在线状态,例如忙碌、离开和隐身等。
final
statusDetails ↔ Map<String, int>?
该用户的当前在线状态详情。
getter/setter pair

Methods

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

Operators

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