IMSDK
即时通信 IM 提供全球接入、单聊、群聊、消息推送、资料关系链托管、帐号鉴权等全方位解决方案,并提供完备的 App 接入、后台管理接口。
V2TIMGroupInfo

详细描述

群资料

Public 成员函数

 V2TIMGroupInfo ()
 
 V2TIMGroupInfo (const V2TIMGroupInfo &groupInfo)
 
 ~V2TIMGroupInfo ()
 

成员变量

V2TIMString groupID
 
V2TIMString groupType
 
V2TIMString groupName
 
V2TIMString notification
 
V2TIMString introduction
 
V2TIMString faceURL
 
bool allMuted
 
V2TIMCustomInfo customInfo
 
V2TIMString owner
 
uint32_t createTime
 
V2TIMGroupAddOpt groupAddOpt
 
uint32_t lastInfoTime
 
uint32_t lastMessageTime
 
uint32_t memberCount
 
uint32_t onlineCount
 
uint32_t memberMaxCount
 
uint32_t role
 
V2TIMReceiveMessageOpt recvOpt
 
uint32_t joinTime
 
uint32_t modifyFlag
 

构造及析构函数说明

◆ V2TIMGroupInfo() [1/2]

◆ V2TIMGroupInfo() [2/2]

V2TIMGroupInfo ( const V2TIMGroupInfo groupInfo)

◆ ~V2TIMGroupInfo()

结构体成员变量说明

◆ groupID

V2TIMString groupID

群组 ID 自定义群组 ID 必须为可打印 ASCII 字符(0x20-0x7e),最长48个字节,且前缀不能为 @TGS(避免与默认分配的群组 ID 混淆)

◆ groupType

V2TIMString groupType

群类型

◆ groupName

V2TIMString groupName

群名称 群名称最长30字节

◆ notification

V2TIMString notification

群公告 群公告最长300字节

◆ introduction

V2TIMString introduction

群简介 群简介最长240字节

◆ faceURL

V2TIMString faceURL

群头像 群头像 URL 最长100字节

◆ allMuted

bool allMuted

是否全员禁言

◆ customInfo

V2TIMCustomInfo customInfo

设置群自定义字段需要两个步骤: 1.在 控制台 (功能配置 -> 群自定义字段) 配置群自定义字段的 key 值,Key 为 V2TIMString 类型,长度不超过 16 字节。 2.调用 SetGroupInfo 接口设置该字段,value 为 V2TIMSBuffer 数据,长度不超过 512 字节。

◆ owner

V2TIMString owner

群创建人/管理员

◆ createTime

uint32_t createTime

群创建时间

◆ groupAddOpt

V2TIMGroupAddOpt groupAddOpt

加群是否需要管理员审批,工作群(Work)不能主动加入,不支持此设置项

◆ lastInfoTime

uint32_t lastInfoTime

群最近一次群资料修改时间

◆ lastMessageTime

uint32_t lastMessageTime

群最近一次发消息时间

◆ memberCount

uint32_t memberCount

已加入的群成员数量

◆ onlineCount

uint32_t onlineCount

在线的群成员数量

◆ memberMaxCount

uint32_t memberMaxCount

最多允许加入的群成员数量 各类群成员人数限制详见: https://cloud.tencent.com/document/product/269/1502#.E7.BE.A4.E7.BB.84.E9.99.90.E5.88.B6.E5.B7.AE.E5.BC.82

◆ role

uint32_t role

当前用户在此群组中的角色,切换角色请调用 setGroupMemberRole 接口

◆ recvOpt

V2TIMReceiveMessageOpt recvOpt

当前用户在此群组中的消息接收选项,修改群消息接收选项请调用 SetGroupReceiveMessageOpt 接口

◆ joinTime

uint32_t joinTime

当前用户在此群中的加入时间,不支持设置,系统自动生成

◆ modifyFlag

uint32_t modifyFlag