dartGroupType2CType static method

int dartGroupType2CType(
  1. String groupType
)

Implementation

static int dartGroupType2CType(String groupType) {
  if (groupType == GroupType.Public) {
    return CGroupType.groupPublic;
  } else if (groupType == GroupType.Work) {
    return CGroupType.groupPrivate;
  } else if (groupType == GroupType.Meeting) {
    return CGroupType.groupChatRoom;
  } else if (groupType == GroupType.AVChatRoom) {
    return CGroupType.groupAVChatRoom;
  } else if (groupType == GroupType.Community) {
    return CGroupType.groupCommunity;
  } else {
    return CGroupType.groupPublic;
  }
}