refuseGroupApplication method
Future<V2TimCallback>
refuseGroupApplication({
- String? reason,
- required int addTime,
- required String groupID,
- required String fromUser,
- required String toUser,
- required GroupApplicationTypeEnum type,
override
Implementation
@override
Future<V2TimCallback> refuseGroupApplication(
{String? reason,
required int addTime,
required String groupID,
required String fromUser,
required String toUser,
required GroupApplicationTypeEnum type}) async {
final result = await TencentImSDKPlugin.v2TIMManager
.getGroupManager()
.refuseGroupApplication(
groupID: groupID,
fromUser: fromUser,
toUser: toUser,
type: type,
addTime: addTime,
reason: reason);
if (result.code != 0) {
_coreService.callOnCallback(TIMCallback(
type: TIMCallbackType.API_ERROR,
errorMsg: result.desc,
errorCode: result.code));
}
return result;
}