cGroupType2DartType static method

String cGroupType2DartType(
  1. int groupType
)

Implementation

static String cGroupType2DartType(int groupType) {
  switch (groupType) {
    case CGroupType.groupPublic:
      return GroupType.Public;
    case CGroupType.groupPrivate:
      return GroupType.Work;
    case CGroupType.groupChatRoom:
      return GroupType.Meeting;
    case CGroupType.groupAVChatRoom:
    case CGroupType.groupBChatRoom:
      return GroupType.AVChatRoom;
    case CGroupType.groupCommunity:
      return GroupType.Community;
    default:
      return GroupType.Public;
  }
}