groupStyleTypeFromInt function

ChatGroupStyle groupStyleTypeFromInt(
  1. int? type
)

Implementation

ChatGroupStyle groupStyleTypeFromInt(int? type) {
  ChatGroupStyle ret = ChatGroupStyle.PrivateOnlyOwnerInvite;
  switch (type) {
    case 0:
      {
        ret = ChatGroupStyle.PrivateOnlyOwnerInvite;
      }
      break;
    case 1:
      {
        ret = ChatGroupStyle.PrivateMemberCanInvite;
      }
      break;
    case 2:
      {
        ret = ChatGroupStyle.PublicJoinNeedApproval;
      }
      break;
    case 3:
      {
        ret = ChatGroupStyle.PublicOpenJoin;
      }
      break;
  }
  return ret;
}