ChatLib class

Constructors

ChatLib()
factory

Properties

baseUrl String
getter/setter pair
cert String
getter/setter pair
chatId ↔ Int64
getter/setter pair
consultId ↔ Int64
getter/setter pair
custom String
getter/setter pair
delegate TeneasySDKDelegate?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isConnected bool
getter/setter pair
msgList Map<Int64, Message>
getter/setter pair
payloadId ↔ Int64
getter/setter pair
replyMsgId ↔ Int64
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendingMsg Message?
getter/setter pair
sign String
getter/setter pair
token String
getter/setter pair
userId int
getter/setter pair
withAutoReply WithAutoReply?
getter/setter pair

Methods

callWebSocket() → void
disconnect() → void
dispose() → dynamic
initialize({required int userId, required String cert, required String token, required String baseUrl, required String sign, int chatId = 0, String custom = '', int maxSessionMinutes = 90000000}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resendMSg(String msg, Int64 consultId, Int64 payloadId, {Int64 replyMsgId = Int64.ZERO, MessageFormat type = MessageFormat.MSG_TEXT, WithAutoReply? withAutoReply = null}) → void
重发消息 @param cMsg: Message @param payloadId: Long
resetSessionTime() → void
sendMessage(String msg, MessageFormat type, Int64 consultId, {Int64 replyMsgId = Int64.ZERO, WithAutoReply? withAutoReply = null, Int64 payload_Id = Int64.ZERO, String fileName = '', int fileSize = 0}) → void
sendVideoMessage(String url, String thumbnail, String hlsUri, Int64 consultId, {Int64 replyMsgId = Int64.ZERO, WithAutoReply? withAutoReply = null, Int64 payload_Id = Int64.ZERO}) → void
toString() String
A string representation of this object.
inherited

Operators

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