update
This commit is contained in:
parent
cd61ebba7f
commit
7233b2e298
@ -1,6 +1,6 @@
|
|||||||
## 2.1.0+1
|
## 2.1.0+1
|
||||||
|
|
||||||
1.Add join group verification set </br>
|
1.Add setGroupVerification method </br>
|
||||||
|
|
||||||
## 2.1.0
|
## 2.1.0
|
||||||
|
|
||||||
|
@ -41,5 +41,5 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'io.openim:core-sdk:2.1.0.1@aar'
|
implementation 'io.openim:core-sdk:2.1.0.6@aar'
|
||||||
}
|
}
|
@ -211,4 +211,12 @@ public class GroupManager extends BaseManager {
|
|||||||
jsonValue(methodCall, "excludeUserIDList")
|
jsonValue(methodCall, "excludeUserIDList")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setGroupVerification(MethodCall methodCall, MethodChannel.Result result) {
|
||||||
|
Open_im_sdk.setGroupVerification(new OnBaseListener(result, methodCall),
|
||||||
|
value(methodCall, "operationID"),
|
||||||
|
value(methodCall, "groupID"),
|
||||||
|
value(methodCall, "needVerification")
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
@ -68,7 +68,7 @@ packages:
|
|||||||
path: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "2.0.9+3"
|
version: "2.1.0+1"
|
||||||
flutter_test:
|
flutter_test:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description: flutter
|
description: flutter
|
||||||
|
@ -28,6 +28,7 @@ public class GroupManager: BaseServiceManager {
|
|||||||
self["searchGroups"] = searchGroups
|
self["searchGroups"] = searchGroups
|
||||||
self["setGroupMemberRoleLevel"] = setGroupMemberRoleLevel
|
self["setGroupMemberRoleLevel"] = setGroupMemberRoleLevel
|
||||||
self["getGroupMemberListByJoinTimeFilter"] = getGroupMemberListByJoinTimeFilter
|
self["getGroupMemberListByJoinTimeFilter"] = getGroupMemberListByJoinTimeFilter
|
||||||
|
self["setGroupVerification"] = setGroupVerification
|
||||||
}
|
}
|
||||||
|
|
||||||
func setGroupListener(methodCall: FlutterMethodCall, result: @escaping FlutterResult){
|
func setGroupListener(methodCall: FlutterMethodCall, result: @escaping FlutterResult){
|
||||||
@ -125,6 +126,10 @@ public class GroupManager: BaseServiceManager {
|
|||||||
func getGroupMemberListByJoinTimeFilter(methodCall: FlutterMethodCall, result: @escaping FlutterResult){
|
func getGroupMemberListByJoinTimeFilter(methodCall: FlutterMethodCall, result: @escaping FlutterResult){
|
||||||
Open_im_sdkGetGroupMemberListByJoinTimeFilter(BaseCallback(result: result), methodCall[string: "operationID"], methodCall[string: "groupID"], methodCall[int32: "offset"], methodCall[int32: "count"], methodCall[int64: "joinTimeBegin"], methodCall[int64: "joinTimeEnd"], methodCall[jsonString: "excludeUserIDList"])
|
Open_im_sdkGetGroupMemberListByJoinTimeFilter(BaseCallback(result: result), methodCall[string: "operationID"], methodCall[string: "groupID"], methodCall[int32: "offset"], methodCall[int32: "count"], methodCall[int64: "joinTimeBegin"], methodCall[int64: "joinTimeEnd"], methodCall[jsonString: "excludeUserIDList"])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func setGroupVerification(methodCall: FlutterMethodCall, result: @escaping FlutterResult){
|
||||||
|
Open_im_sdkSetGroupVerification(BaseCallback(result: result), methodCall[string: "operationID"], methodCall[string: "groupID"], methodCall[int32:"needVerification"])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class GroupListener: NSObject, Open_im_sdk_callbackOnGroupListenerProtocol {
|
public class GroupListener: NSObject, Open_im_sdk_callbackOnGroupListenerProtocol {
|
||||||
|
@ -195,7 +195,6 @@ class GroupManager {
|
|||||||
/// [introduction] 新的群介绍
|
/// [introduction] 新的群介绍
|
||||||
/// [faceUrl] 新的群头像
|
/// [faceUrl] 新的群头像
|
||||||
/// [ex] 新的额外信息
|
/// [ex] 新的额外信息
|
||||||
/// [needVerification] 进群设置,参考[GroupVerification]类
|
|
||||||
Future<dynamic> setGroupInfo({
|
Future<dynamic> setGroupInfo({
|
||||||
required String groupID,
|
required String groupID,
|
||||||
String? groupName,
|
String? groupName,
|
||||||
@ -203,7 +202,6 @@ class GroupManager {
|
|||||||
String? introduction,
|
String? introduction,
|
||||||
String? faceUrl,
|
String? faceUrl,
|
||||||
String? ex,
|
String? ex,
|
||||||
int needVerification = 0,
|
|
||||||
String? operationID,
|
String? operationID,
|
||||||
}) =>
|
}) =>
|
||||||
_channel.invokeMethod(
|
_channel.invokeMethod(
|
||||||
@ -217,7 +215,6 @@ class GroupManager {
|
|||||||
"introduction": introduction,
|
"introduction": introduction,
|
||||||
"faceURL": faceUrl,
|
"faceURL": faceUrl,
|
||||||
"ex": ex,
|
"ex": ex,
|
||||||
"needVerification": needVerification,
|
|
||||||
},
|
},
|
||||||
'operationID': Utils.checkOperationID(operationID),
|
'operationID': Utils.checkOperationID(operationID),
|
||||||
}));
|
}));
|
||||||
@ -483,6 +480,22 @@ class GroupManager {
|
|||||||
.then((value) =>
|
.then((value) =>
|
||||||
Utils.toList(value, (map) => GroupMembersInfo.fromJson(map)));
|
Utils.toList(value, (map) => GroupMembersInfo.fromJson(map)));
|
||||||
|
|
||||||
|
/// 设置群成员权限
|
||||||
|
/// [groupID] 群ID
|
||||||
|
/// [needVerification] 进群设置,参考[GroupVerification]类
|
||||||
|
Future<dynamic> setGroupVerification({
|
||||||
|
required String groupID,
|
||||||
|
required int needVerification,
|
||||||
|
String? operationID,
|
||||||
|
}) =>
|
||||||
|
_channel.invokeMethod(
|
||||||
|
'setGroupVerification',
|
||||||
|
_buildParam({
|
||||||
|
'groupID': groupID,
|
||||||
|
'needVerification': needVerification,
|
||||||
|
'operationID': Utils.checkOperationID(operationID),
|
||||||
|
}));
|
||||||
|
|
||||||
static Map _buildParam(Map param) {
|
static Map _buildParam(Map param) {
|
||||||
param["ManagerName"] = "groupManager";
|
param["ManagerName"] = "groupManager";
|
||||||
return param;
|
return param;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user