GroupSearchGroups

功能介绍

搜索群资料

SDK 会搜索群名称包含于关键字列表 group_search_params_keyword_list 的所有群并返回群信息列表。关键字列表最多支持5个。

群组搜索只能搜索本地存储过的群组,比如已加入的群组列表,拉取过的群组资料等。

您可以设置搜索关键字 group_search_params_keyword_list,并指定搜索的范围,即是否搜索群组的 userID、groupName 字段。

参数详解

重载1

参数名称 参数类型 是否必填 描述
json_group_search_groups_param GroupSearchParam 群列表的参数
callback ValueCallback< List< GroupDetailInfo > > 异步回调 返回值的json_param的格式为json

重载2

参数名称 参数类型 是否必填 描述
json_group_search_groups_param GroupSearchParam 群列表的参数
callback ValueCallback< string > 异步回调 返回值的json_param的格式为string

返回模板

TIMResult

调用成功后回调函数参数:
code:int
desc:string
json_param:
'[{
  "group_detial_info_add_option": 1,
  "group_detial_info_create_time": 0,
  "group_detial_info_custom_info": [{
      "group_info_custom_string_info_key": "custom_public",
      "group_info_custom_string_info_value": ""
  }, {
      "group_info_custom_string_info_key": "custom_public2",
      "group_info_custom_string_info_value": ""
  }, {
      "group_info_custom_string_info_key": "group_info",
      "group_info_custom_string_info_value": ""
  }, {
      "group_info_custom_string_info_key": "group_test",
      "group_info_custom_string_info_value": ""
  }],
  "group_detial_info_face_url": "",
  "group_detial_info_group_id": "lamarzhang_group_public",
  "group_detial_info_group_name": "lamarzhang_group_public",
  "group_detial_info_group_type": 0,
  "group_detial_info_info_seq": 9,
  "group_detial_info_introduction": "Instroduction",
  "group_detial_info_is_shutup_all": false,
  "group_detial_info_last_info_time": 1620810613,
  "group_detial_info_last_msg_time": 1620810613,
  "group_detial_info_max_member_num": 1000,
  "group_detial_info_member_num": 2,
  "group_detial_info_next_msg_seq": 2,
  "group_detial_info_notification": "Notification",
  "group_detial_info_online_member_num": 0,
  "group_detial_info_owener_identifier": "lamarzhang",
  "group_detial_info_searchable": true,
  "group_detial_info_visible": true
]' // Json Key请参考[GroupDetailInfo]
user_data:string

返回值详解

名称 数值类型 描述
TIMResult TIMResult 调用接口的返回值
code int 值为ERR_SUCC表示成功,其他值表示失败。详情请参考 错误码
desc string 错误描述字符串
json_param string Json字符串,不同的接口,Json字符串不一样 Json Key请参考GroupDetailInfo
user_data string ImSDK负责透传的用户自定义数据,未做任何处理

results matching ""

    No results matching ""