convertGroupType static method
Implementation
static int convertGroupType(String groupType){
if (groupType == GroupType.Public) {
return GroupTypeEnum.kTIMGroup_Public.index;
} else if (groupType == GroupType.Work) {
return GroupTypeEnum.kTIMGroup_Private.index;
} else if (groupType == GroupType.Meeting) {
return GroupTypeEnum.kTIMGroup_ChatRoom.index;
} else if (groupType == GroupType.AVChatRoom) {
return GroupTypeEnum.kTIMGroup_AVChatRoom.index;
} else if (groupType == GroupType.Community) {
return GroupTypeEnum.kTIMGroup_Community.index;
} else {
return GroupTypeEnum.kTIMGroup_Public.index;
}
}