add 'getConversationIDBySessionType'
This commit is contained in:
parent
0ef41147fd
commit
2aec080e2f
@ -130,6 +130,23 @@ class ConversationManager {
|
|||||||
"operationID": Utils.checkOperationID(operationID),
|
"operationID": Utils.checkOperationID(operationID),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
/// Query Conversation ID
|
||||||
|
/// [sourceID] UserID for one-on-one, GroupID for group
|
||||||
|
/// [sessionType] Reference [ConversationType]
|
||||||
|
Future<dynamic> getConversationIDBySessionType({
|
||||||
|
required String sourceID,
|
||||||
|
required int sessionType,
|
||||||
|
String? operationID,
|
||||||
|
}) {
|
||||||
|
return _channel.invokeMethod(
|
||||||
|
'getConversationIDBySessionType',
|
||||||
|
_buildParam({
|
||||||
|
'sourceID': sourceID,
|
||||||
|
'sessionType': sessionType,
|
||||||
|
'operationID': Utils.checkOperationID(operationID),
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
/// get total unread message count
|
/// get total unread message count
|
||||||
/// int.tryParse(count) ?? 0;
|
/// int.tryParse(count) ?? 0;
|
||||||
Future<dynamic> getTotalUnreadMsgCount({
|
Future<dynamic> getTotalUnreadMsgCount({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user