Definition of V2TIMGroupInfo.
Public Member Functions | |
V2TIMGroupInfo () | |
V2TIMGroupInfo (const V2TIMGroupInfo &groupInfo) | |
~V2TIMGroupInfo () | |
Data Fields | |
V2TIMString | groupID |
V2TIMString | groupType |
bool | isSupportTopic |
V2TIMString | groupName |
V2TIMString | notification |
V2TIMString | introduction |
V2TIMString | faceURL |
bool | allMuted |
V2TIMCustomInfo | customInfo |
V2TIMString | owner |
uint32_t | createTime |
V2TIMGroupAddOpt | groupAddOpt |
V2TIMGroupAddOpt | groupApproveOpt |
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 | ( | ) |
V2TIMGroupInfo | ( | const V2TIMGroupInfo & | groupInfo | ) |
~V2TIMGroupInfo | ( | ) |
V2TIMString groupID |
Group ID The custom group ID must be printable ASCII characters (0x20-0x7e) with a maximum length of 48 bytes. It cannot begin with @TGS# so as to avoid confusion with the default group IDs assigned by IM.
V2TIMString groupType |
Group type.
bool isSupportTopic |
Get supporting topic of not. (valid only for Community)
V2TIMString groupName |
Group name The maximum length of the group name is 30 bytes.
V2TIMString notification |
Group notice The maximum length of the group notice is 300 bytes.
V2TIMString introduction |
Group introduction The maximum length of the group introduction is 240 bytes.
V2TIMString faceURL |
Group profile photo URL The maximum length of the group profile photo URL is 100 bytes.
bool allMuted |
Whether to mute all group members.
V2TIMCustomInfo customInfo |
Get custom group fields To set a custom group field, perform the following steps:
1. Go to the console (Feature Configuration -> Custom Group Field) to set the key value of the custom group field. The key field is of the String type, with a maximum length of 16 bytes.
2. Call the setGroupInfo API to set the field. The field value is of the NSData type, with a maximum length of 512 bytes.
V2TIMString owner |
Group owner ID.
uint32_t createTime |
Group creation time.
V2TIMGroupAddOpt groupAddOpt |
The approval method of the administrator in the group applying mode, the default value of work group is V2TIM_ GROUP_ ADD_ FORBID (that is, users are not allowed to apply for group membership by default). You can modify this field to open it.
V2TIMGroupAddOpt groupApproveOpt |
The approval method of the administrator in the group invitation mode (Supported in 7.1 and later versions)
uint32_t lastInfoTime |
Latest group data modification time of the group.
uint32_t lastMessageTime |
Last time the group sends a message.
uint32_t memberCount |
Number of members that have joined the group.
uint32_t onlineCount |
Number of online group members.
uint32_t memberMaxCount |
Maximum number of group members allowed to join
uint32_t role |
Group member role of current user. To switch the role, please call the setGroupMemberRole API.
V2TIMReceiveMessageOpt recvOpt |
Current user's message receiving option in the group. To modify the group message receiving option, please call the setGroupReceiveMessageOpt API.
uint32_t joinTime |
Time when the current user joins the group. The time is automatically generated by the system and cannot be set.
uint32_t modifyFlag |
Group info modification flag Enumeration V2TIMGroupInfoModifyFlag lists which fields support modification, if you modify group information, please set the value of this field, if you modify multiple fields at the same time, multiple enumeration values are combined by bitwise OR, for example, modify the group name and avatar at the same time. info.groupName = "new group name"; info.faceURL = "new face url"; info.modifyFlag = V2TIM_GROUP_INFO_MODIFY_FLAG_GROUP_NAME | V2TIM_GROUP_INFO_MODIFY_FLAG_FACE_URL;