refuseFriendApplication
功能介绍
拒绝好友申请
参数详解
返回值
V2TimValueCallback<V2TimFriendOperationResult>
{
code : int
desc : String
data : {
resultCode : int
resultInfo : String
userID : String
}
}
返回值详解
代码示例
V2TimValueCallback<V2TimFriendApplicationResult>
getFriendApplicationListRes = await TencentImSDKPlugin.v2TIMManager
.getFriendshipManager()
.getFriendApplicationList();
if (getFriendApplicationListRes.code == 0) {
getFriendApplicationListRes.data?.unreadCount;
getFriendApplicationListRes.data?.friendApplicationList
?.forEach((element) async {
V2TimValueCallback<V2TimFriendOperationResult>
refuseFriendApplicationRes = await TencentImSDKPlugin.v2TIMManager
.getFriendshipManager()
.refuseFriendApplication(
type: FriendApplicationTypeEnum
.values[element!.type],
userID: "");
if (refuseFriendApplicationRes.code == 0) {
refuseFriendApplicationRes.data?.resultCode;
refuseFriendApplicationRes.data?.resultInfo;
refuseFriendApplicationRes.data?.userID;
}
});
}