FriendshipCreateFriendGroup API ([Details](https://comm.qq.com/im/doc/unity/en/ api/FriendshipApi/FriendshipCreateFriendGroup.html)) to create a friend list.// Create a friend list and add a friend to the listFriendGroupInfo param = new FriendGroupInfo{friendship_create_friend_group_param_name_array = new List<string>{"group_name"},friendship_create_friend_group_param_identifier_array = new List<string>{"user_id"}};TIMResult res = TencentIMSDK.FriendshipCreateFriendGroup(param, (int code, string desc, List<FriendResult> result, string user_data)=>{// Process the async logic});
// Delete a friend listList<string> param = new List<string>{"user_id"};TIMResult res = TencentIMSDK.FriendshipDeleteFriendGroup(param, (int code, string desc, string user_data)=>{// Process the async logic});
// Rename a friend listFriendshipModifyFriendGroupParam param = new FriendshipModifyFriendGroupParam{friendship_modify_friend_group_param_name = "old_group_name",friendship_modify_friend_group_param_new_name = "new_group_name"};TIMResult res = TencentIMSDK.FriendshipModifyFriendGroup(param, (int code, string desc, List<FriendResult> result, string user_data)=>{// Process the async logic});
// Get the information of a friend list by list nameList<string> param = new List<string>{"user_id"};TIMResult res = TencentIMSDK.FriendshipGetFriendGroupList(param, (int code, string desc, List<FriendGroupInfo> info_list, string user_data)=>{// Process the async logic});
// Add a friend to a friend listFriendshipModifyFriendGroupParam param = new FriendshipModifyFriendGroupParam{friendship_modify_friend_group_param_name = "group_name",friendship_modify_friend_group_param_add_identifier_array = new List<string>{"user_id"}};TIMResult res = TencentIMSDK.FriendshipModifyFriendGroup(param, (int code, string desc, List<FriendResult> result, string user_data)=>{// Process the async logic});
// Remove a friend from a listFriendshipModifyFriendGroupParam param = new FriendshipModifyFriendGroupParam{friendship_modify_friend_group_param_name = "group_name",friendship_modify_friend_group_param_delete_identifier_array = new List<string>{"user_id"}};TIMResult res = TencentIMSDK.FriendshipModifyFriendGroup(param, (int code, string desc, List<FriendResult> result, string user_data)=>{// Process the async logic});
Feedback