no message

This commit is contained in:
cpdl
2025-05-06 17:25:49 +08:00
parent 43515d8058
commit 67bf71c998
35 changed files with 4216 additions and 296 deletions

View File

@@ -2,10 +2,6 @@ import 'dart:developer';
import 'package:flutter/services.dart';
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
import 'package:flutter_openim_sdk/src/models/set_channel_member_info.dart';
import '../listener/channel_listener.dart';
import '../models/channel_info.dart';
class ChannelManager {
MethodChannel _channel;

View File

@@ -4,7 +4,6 @@ import 'dart:developer';
import 'package:flutter/services.dart';
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
import '../models/update_req.dart';
class ConversationManager {
MethodChannel _channel;

View File

@@ -3,7 +3,6 @@ import 'dart:async';
import 'package:flutter/services.dart';
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
import '../models/update_req.dart';
class FriendshipManager {
MethodChannel _channel;

View File

@@ -2,7 +2,6 @@ import 'dart:developer';
import 'package:flutter/services.dart';
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
import 'package:flutter_openim_sdk/src/models/set_group_member_info.dart';
class GroupManager {
MethodChannel _channel;

View File

@@ -6,8 +6,6 @@ import 'package:flutter/services.dart';
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
import 'package:flutter_openim_sdk/src/logger.dart';
import '../models/channel_info.dart';
import 'im_channel_manager.dart';
class IMManager {
MethodChannel _channel;

View File

@@ -1,5 +1,4 @@
import '../../flutter_openim_sdk.dart';
import 'channel_info.dart';
/// OA notification
class OANotification {
@@ -456,8 +455,6 @@ class GroupMemberInfoChangedNotification {
}
}
///todo 所有的聊天的操作者都没有,暂时没有处理
/// 聊天室事件通知
class ChannelNotification {
@@ -481,7 +478,8 @@ class ChannelNotification {
});
ChannelNotification.fromJson(Map<String, dynamic> json) {
Channel = json['channel'] != null ? ChannelInfo.fromJson(json['channel']) : null;
Channel =
json['channel'] != null ? ChannelInfo.fromJson(json['channel']) : null;
opUser = json['opUser'] != null
? ChannelMembersInfo.fromJson(json['opUser'])
: null;
@@ -514,7 +512,6 @@ class ChannelNotification {
}
}
/// 组踢出成员通知
class KickedChannelMemeberNotification {
/// 聊天室信息
@@ -530,7 +527,8 @@ class KickedChannelMemeberNotification {
{this.Channel, this.opUser, this.kickedUserList});
KickedChannelMemeberNotification.fromJson(Map<String, dynamic> json) {
Channel = json['channel'] != null ? ChannelInfo.fromJson(json['channel']) : null;
Channel =
json['channel'] != null ? ChannelInfo.fromJson(json['channel']) : null;
opUser = json['opUser'] != null
? ChannelMembersInfo.fromJson(json['opUser'])
: null;
@@ -569,7 +567,8 @@ class QuitChannelNotification {
QuitChannelNotification({this.Channel, this.quitUser});
QuitChannelNotification.fromJson(Map<String, dynamic> json) {
Channel = json['channel'] != null ? ChannelInfo.fromJson(json['channel']) : null;
Channel =
json['channel'] != null ? ChannelInfo.fromJson(json['channel']) : null;
quitUser = json['quitUser'] != null
? ChannelMembersInfo.fromJson(json['quitUser'])
: null;
@@ -598,7 +597,8 @@ class EnterChannelNotification {
EnterChannelNotification({this.Channel, this.entrantUser});
EnterChannelNotification.fromJson(Map<String, dynamic> json) {
Channel = json['channel'] != null ? ChannelInfo.fromJson(json['channel']) : null;
Channel =
json['channel'] != null ? ChannelInfo.fromJson(json['channel']) : null;
entrantUser = json['entrantUser'] != null
? ChannelMembersInfo.fromJson(json['entrantUser'])
: null;
@@ -616,7 +616,6 @@ class EnterChannelNotification {
}
}
/// 禁言成员通知
class MuteChannelMemberNotification {
/// 聊天室信息
@@ -639,7 +638,8 @@ class MuteChannelMemberNotification {
});
MuteChannelMemberNotification.fromJson(Map<String, dynamic> json) {
Channel = json['channel'] != null ? ChannelInfo.fromJson(json['channel']) : null;
Channel =
json['channel'] != null ? ChannelInfo.fromJson(json['channel']) : null;
opUser = json['opUser'] != null
? ChannelMembersInfo.fromJson(json['opUser'])
: null;
@@ -683,7 +683,8 @@ class ChannelMemberInfoChangedNotification {
});
ChannelMemberInfoChangedNotification.fromJson(Map<String, dynamic> json) {
Channel = json['channel'] != null ? ChannelInfo.fromJson(json['channel']) : null;
Channel =
json['channel'] != null ? ChannelInfo.fromJson(json['channel']) : null;
opUser = json['opUser'] != null
? ChannelMembersInfo.fromJson(json['opUser'])
: null;